調整版型設計

This commit is contained in:
2026-07-17 17:40:17 +08:00
parent dee05d6ff9
commit 59bb0ff824
8 changed files with 1523 additions and 26 deletions
+8 -1
View File
@@ -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);