調整版型設計
This commit is contained in:
@@ -92,7 +92,7 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
//bom_qty.Enabled = prodBom != null;//有對應的act_bom項目..
|
||||
bom_qty.Text = (prodBom?.qty??0).ToString();
|
||||
bom_memo.Text = (prodBom?.memo ?? "");
|
||||
packageNum.Value=(prodBom?.num.ToString());
|
||||
packageNum.Value=(prodBom?.num.ToString());
|
||||
prod_bom_num = prodBom?.num ?? 0;
|
||||
}
|
||||
else
|
||||
@@ -162,10 +162,17 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
actItem.sort_order = maxSort + 1;
|
||||
|
||||
_db.actItems.Add(actItem);
|
||||
|
||||
_db.SaveChanges();
|
||||
int _id = actItem.num;
|
||||
if( _id > 0)
|
||||
{
|
||||
Model.actItem_files file=new Model.actItem_files();
|
||||
file.actItem_num= _id;
|
||||
file.files_num = 211;
|
||||
file.file.reg_time=DateTime.Now;
|
||||
_db.actItem_files.Add(file);
|
||||
_db.SaveChanges();
|
||||
Model.admin_log admin_log = new Model.admin_log();
|
||||
admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Item, (int)Model.admin_log.Status.Insert, subject.Text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user