public async Task <ActionResult> Edit([Bind(Include = "QCCODE,QCTYPE,DESCRIPTION,LINENAME,DEFAULTOOP,FROMOP,COMMENTS")] ENG_RWKSCRCODE eNG_RWKSCRCODE) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { if (String.IsNullOrEmpty(eNG_RWKSCRCODE.LINENAME)) { eNG_RWKSCRCODE.LINENAME = "ALL"; } if (String.IsNullOrEmpty(eNG_RWKSCRCODE.FROMOP)) { eNG_RWKSCRCODE.FROMOP = "ALL"; } if (String.IsNullOrEmpty(eNG_RWKSCRCODE.DEFAULTOOP)) { eNG_RWKSCRCODE.DEFAULTOOP = "ALL"; } db.Entry(eNG_RWKSCRCODE).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_RWKSCRCODE.QCTYPE, eNG_RWKSCRCODE.LINENAME, eNG_RWKSCRCODE.DEFAULTOOP, eNG_RWKSCRCODE.FROMOP); return(View(eNG_RWKSCRCODE)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,L_OPNO,DISPLAYNAME,OPDEFAULTSEQ,STDYIELDRATE,CYCLETIME")] ENG_LINEOP eNG_LINEOP) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_LINEOP).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.LINENAME = new SelectList(db.ENG_PRDLINE, "LINENAME", "CodeName", eNG_LINEOP.LINENAME); return(View(eNG_LINEOP)); }
public async Task <ActionResult> Edit([Bind(Include = "OPERID,OPERNAME,PWD,BUNO,DEPTNO,ACTIVE,EMAIL,MOBILE,COMMENTS")] HR_OPERATORS hR_OPERATORS) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(hR_OPERATORS).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.BUNO = new SelectList(db.ENG_BU, "BUNO", "CodeName", hR_OPERATORS.BUNO); return(View(hR_OPERATORS)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,BUNO,DISPLAYNAME,STDYIELDRATE,LINEGRP")] ENG_PRDLINE eNG_PRDLINE) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_PRDLINE).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.BUNO = new SelectList(db.ENG_BU, "BUNO", "CodeName", eNG_PRDLINE.BUNO); return(View(eNG_PRDLINE)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,PARTNO,SETTINGType,L_OPNO,L_STNO,STDYIELDRATE,PREPARETIME,POSTTIME,CYCLETIME,STDHEADS,IDCFGLIST,COMMENT,NGIDUNBINDLST,PROPLIST")] ENG_LINEOPPARTCONF eNG_LINEOPPARTCONF) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_LINEOPPARTCONF).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_LINEOPPARTCONF.LINENAME, eNG_LINEOPPARTCONF.PARTNO); return(View(eNG_LINEOPPARTCONF)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,PARTNO,PARTVER,SETTINGType,STDYIELDRATE,CONTNRTYPE,RT_NAME,STDHEADCOUNTS,DEFAULT_CONFNAME")] ENG_LINEPARTCONF eNG_LINEPARTCONF) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_LINEPARTCONF).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_LINEPARTCONF.LINENAME, eNG_LINEPARTCONF.PARTNO); return(View(eNG_LINEPARTCONF)); }
public async Task <ActionResult> Edit([Bind(Include = "CONTNRTYPE,CONTAINERDESC,PARTGRP2,VOLUMEQTY,VOL_UNIT,CONTAINSUBQTY,OVERLIMIT,CONTRLBY,SUBCONTNRTYPE,PARENTTYPE,SINGLEPART,COMMENTS")] WMS_CONTNRTYPE wMS_CONTNRTYPE) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(wMS_CONTNRTYPE).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(wMS_CONTNRTYPE.PARTGRP2, wMS_CONTNRTYPE.CONTRLBY, wMS_CONTNRTYPE.SUBCONTNRTYPE, wMS_CONTNRTYPE.PARENTTYPE); return(View(wMS_CONTNRTYPE)); }
public async Task <ActionResult> Edit(String CONTNRTYPE, [Bind(Include = "CONTNRTYPE,PROPERTYNAME,PROPERTYVALUE")] WMS_CONTAINERTYPEATTR wMS_CONTAINERTYPEATTR) { await Init(CONTNRTYPE); ViewBag.SubTitle = "编辑"; ViewBag.CONTNRTYPE = CONTNRTYPE; wMS_CONTAINERTYPEATTR.CONTNRTYPE = CONTNRTYPE; if (ModelState.IsValid) { db.Entry(wMS_CONTAINERTYPEATTR).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(wMS_CONTAINERTYPEATTR)); }
public async Task <ActionResult> Edit([Bind(Include = "OPERID,LINENAME,L_OPNO,L_STNO,CAPBLEVEL,COMMENTS")] HR_OPERCAPBMATRIX hR_OPERCAPBMATRIX) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { Prepare(hR_OPERCAPBMATRIX); db.Entry(hR_OPERCAPBMATRIX).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(hR_OPERCAPBMATRIX.OPERID, hR_OPERCAPBMATRIX.LINENAME, hR_OPERCAPBMATRIX.L_OPNO, hR_OPERCAPBMATRIX.L_STNO); return(View(hR_OPERCAPBMATRIX)); }
public async Task <ActionResult> Edit([Bind(Include = "RT_NAME,SEQNO,LINENAME,SUBLINENO,L_OPNO,PREV_OPLIST,NEXT_OPLIST,IsFirst,IsLast,COMMENTS")] ENG_ROUTE eNG_ROUTE) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_ROUTE).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.LINENAME = new SelectList(db.ENG_LINEOP, "LINENAME", "CodeName", eNG_ROUTE.LINENAME); ViewBag.L_OPNO = new SelectList(await db.ENG_LINEOP .Where(op => op.LINENAME.Equals(eNG_ROUTE.LINENAME)).ToListAsync(), "L_OPNO", "CodeName", eNG_ROUTE.L_OPNO); return(View(eNG_ROUTE)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,L_STNO,L_OPNO, DISPLAYNAME")] ENG_LINESTATION eNG_LINESTATION) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { db.Entry(eNG_LINESTATION).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.LINENAME = new SelectList(db.ENG_LINEOP, "LINENAME", "CodeName", eNG_LINESTATION.LINENAME); ViewBag.L_OPNO = new SelectList(await db.ENG_LINEOP .Where(op => op.LINENAME.Equals(eNG_LINESTATION.LINENAME)).ToListAsync(), "L_OPNO", "CodeName", eNG_LINESTATION.L_OPNO); return(View(eNG_LINESTATION)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,PARTNO,PARTVER,RT_NAME,DEFAULT_CONFNAME,DESCRIPTION")] ENG_BOMHEADER eNG_BOMHEADER) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { eNG_BOMHEADER.UPDATETIME = DateTime.Now; db.Entry(eNG_BOMHEADER).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_BOMHEADER.LINENAME, eNG_BOMHEADER.RT_NAME, eNG_BOMHEADER.DEFAULT_CONFNAME); return(View(eNG_BOMHEADER)); }
public async Task <ActionResult> Edit([Bind(Include = "CONFNAME,CONFID,LINENAME,L_OPNO,L_STNO,PARAM_ID,PARAM_VAL,PARAM_UPPER,PARAM_LOWER,PARAM_TEXT,DATA_TYPE,COMMENTS")] ENG_LINEOPPARAMCONF eNG_LINEOPPARAMCONF) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; Prepare(eNG_LINEOPPARAMCONF); if (ModelState.IsValid) { db.Entry(eNG_LINEOPPARAMCONF).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_LINEOPPARAMCONF.LINENAME, eNG_LINEOPPARAMCONF.L_OPNO, eNG_LINEOPPARAMCONF.L_STNO, eNG_LINEOPPARAMCONF.DATA_TYPE, eNG_LINEOPPARAMCONF.PARAM_TYPE); return(View(eNG_LINEOPPARAMCONF)); }
public async Task <ActionResult> Edit([Bind(Include = "LINENAME,PARTNO,VARNAME,VARTYPE,L_STNO,VARDESC,VARVALUE,UPDATETIME")] ENG_VARIABLES eNG_VARIABLES) { ViewBag.Title = ModelName; ViewBag.SubTitle = "编辑"; if (ModelState.IsValid) { if (String.IsNullOrEmpty(eNG_VARIABLES.LINENAME)) { eNG_VARIABLES.LINENAME = "ALL"; } if (String.IsNullOrEmpty(eNG_VARIABLES.PARTNO)) { eNG_VARIABLES.PARTNO = "ALL"; } db.Entry(eNG_VARIABLES).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } await InitSelect(eNG_VARIABLES.LINENAME, eNG_VARIABLES.PARTNO, eNG_VARIABLES.L_STNO); return(View(eNG_VARIABLES)); }
public async Task <ActionResult> Edit(String LINENAME, String PN, String VER, [Bind(Include = "ITEMID,LINENAME,KEYINFO,PARTNO,PARTVER,L_OPNO,COMP_PARTNO,DESCRIPTION,UNITCONSUMEQTY,LotControl,SERIALCONTROL,IsKeyID,CNTCONTROL,ISSEMI,SEMILINEGRP")] ENG_BOMDETAIL eNG_BOMDETAIL) { if (String.IsNullOrEmpty(LINENAME) || String.IsNullOrEmpty(PN) || String.IsNullOrEmpty(VER)) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ViewBag.Title = String.Format("产线:{0}, 物料{1}@{2}", LINENAME, PN, VER); ViewBag.SubTitle = "编辑"; ViewBag.LINENAME = LINENAME; ViewBag.PN = PN; ViewBag.VER = VER; ViewBag.PATH = String.Format("/{0}.{1}/", PN, VER); if (ModelState.IsValid) { db.Entry(eNG_BOMDETAIL).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("/Index")); } await InitSelect(eNG_BOMDETAIL.SEMILINEGRP, eNG_BOMDETAIL.SERIALCONTROL); return(View(eNG_BOMDETAIL)); }