private Dictionary <string, string> initDatadicsesecondrec(string subID, string id) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("subID", subID); dic.Add("mpciID", id); dic.Add("isdelid", "1"); dic.Add("operater", SessionUserName.Trim()); dic.Add("systemdate", System.DateTime.Now.ToString()); return(dic); }
private Dictionary <string, string> initDatadic_indicator() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("iname", iname.SelectedValue.Trim()); dic.Add("ivalue", ivalue.Text.Trim()); dic.Add("icheck", icheck.Text.Trim()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
private Dictionary <string, string> initDatadicsecondedit(string name, string order, string code) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("classname", name); dic.Add("orderint", order); dic.Add("darycode", code); dic.Add("isdelid", "1"); dic.Add("operater", SessionUserName.Trim()); dic.Add("systemdate", System.DateTime.Now.ToString()); return(dic); }
private Dictionary <string, string> initDatadicmainmpic(string str, string mID, string explain) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("mainID", mID); dic.Add("mpci", str); dic.Add("explain", explain); dic.Add("isdelid", "1"); dic.Add("operater", SessionUserName.Trim()); dic.Add("systemdate", System.DateTime.Now.ToString()); return(dic); }
private Dictionary <string, string> initDatadic() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("conname", conname.Text.Trim()); dic.Add("concode", concode.Text.Trim()); dic.Add("partyA", partyA.Text.Trim()); dic.Add("conserial", conserial.Text.Trim()); dic.Add("condate", condate.SelectedDate.ToString()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
private Dictionary <string, string> initchildDatadic(string strhdid) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("hdid", strhdid.Trim()); dic.Add("hdrepairtime", hdrepairtime.SelectedDate.ToString()); dic.Add("hdreworktime", hdreworktime.SelectedDate.ToString()); dic.Add("hderror", hderror.Text.Trim()); dic.Add("hdrepaircontent", hdrepaircontent.Text.Trim()); dic.Add("operater", SessionUserName.Trim()); dic.Add("systemdate", DateTime.Now.ToString()); dic.Add("isdelid", "1"); return(dic); }
private Dictionary <string, string> initDatadic() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("hdname", hdname.Text.Trim()); dic.Add("hdcode", hdcode.Text.Trim()); dic.Add("hdtype", hdtype.Text.Trim()); dic.Add("hdmodel", hdmodel.Text.Trim()); dic.Add("hdstatu", hdstatu.SelectedValue.Trim()); dic.Add("operater", SessionUserName.Trim()); dic.Add("systemdate", DateTime.Now.ToString()); dic.Add("isdelid", "1"); return(dic); }
private Dictionary <string, string> initchildDatadic(string strpid) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("pid", strpid.Trim()); dic.Add("conpdname", conpdname.Text.Trim()); dic.Add("conpdmodel", conpdmodel.Text.Trim()); dic.Add("conpdnumber", conpdnumber.Text.Trim()); dic.Add("conpduint", conpduint.SelectedValue.Trim()); dic.Add("conpdprice", conpdprice.Text.Trim()); dic.Add("deliveryaddress", deliveryaddress.Text.Trim()); dic.Add("deliverydate", deliverydate.SelectedDate.ToString()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
private Dictionary <string, string> initDatadic_batch() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("batchnumber", batchnumber.Text.Trim()); dic.Add("batchtext", batchtext.Text.Trim()); dic.Add("bdevice", bdevice.SelectedValue.Trim()); dic.Add("stove_code", stove_code.Text.Trim()); dic.Add("stovetemp", stovetemp.Text.Trim()); dic.Add("heattemp", heattemp.Text.Trim()); dic.Add("heattime", heattime.Text.Trim()); dic.Add("keeptime", keeptime.Text.Trim()); dic.Add("coolmedia", coolmedia.Text.Trim()); dic.Add("cooltemp", cooltemp.Text.Trim()); dic.Add("cooltime", cooltime.Text.Trim()); dic.Add("workhour", workhour.Text.Trim()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
private Dictionary <string, string> initDatadic() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("fullname", fullname.Text.Trim()); dic.Add("password", password.Text.Trim()); dic.Add("sex", sex.SelectedValue.Trim()); DateTime seldate; if (birdate.Text.Trim() != "" && System.DateTime.TryParse(birdate.Text.Trim(), out seldate)) { dic.Add("birdate", birdate.Text.Trim()); } dic.Add("telephone", telephone.Text.Trim()); dic.Add("address", address.Text.Trim()); dic.Add("regperson", SessionUserName.Trim()); dic.Add("regdate", System.DateTime.Now.ToString()); return(dic); }
private Dictionary <string, string> initDatadic() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("tname", tname.Text.Trim()); dic.Add("tcode", tcode.Text.Trim()); dic.Add("mtag", mtag.Text.Trim()); dic.Add("kitweight", kitweight.Text.Trim()); dic.Add("craftmethod", craftmethod.Text.Trim()); if (normalperson.SelectedItem != null) { dic.Add("normalperson", normalperson.SelectedValue.Trim()); } if (approveperson.SelectedItem != null) { dic.Add("approveperson", approveperson.SelectedValue.Trim()); } if (designperson.SelectedItem != null) { dic.Add("designperson", designperson.SelectedValue.Trim()); } if (auditperson.SelectedItem != null) { dic.Add("auditperson", auditperson.SelectedValue.Trim()); } dic.Add("normaldate", normaldate.SelectedDate.ToString()); dic.Add("approvedate", approvedate.SelectedDate.ToString()); dic.Add("designdate", designdate.SelectedDate.ToString()); dic.Add("auditdate", auditdate.SelectedDate.ToString()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
private Dictionary <string, string> initDatadic() { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("mname", mname.Text.Trim()); dic.Add("mcode", mcode.Text.Trim()); if (designer.SelectedItem != null) { dic.Add("designer", designer.SelectedValue.Trim()); } if (checker.SelectedItem != null) { dic.Add("checker", checker.SelectedValue.Trim()); } if (stanarder.SelectedItem != null) { dic.Add("stanarder", stanarder.SelectedValue.Trim()); } if (drawer.SelectedItem != null) { dic.Add("drawer", drawer.SelectedValue.Trim()); } if (examiner.SelectedItem != null) { dic.Add("examiner", examiner.SelectedValue.Trim()); } dic.Add("drawdate", drawdate.SelectedDate.ToString()); dic.Add("specifications", specifications.Text.Trim()); dic.Add("operater", SessionUserName.Trim()); return(dic); }
protected void BtnLogin_Click(object sender, EventArgs e) { Login1 lObj = new Login1(); DataTable d = new DataTable(); int check; string Username; check = lObj.log_in(tbEmail.Text, tbPassword.Text, out d); if (check == 1) { SessionUserName s = new SessionUserName(); Username = s.User(tbEmail.Text, out d); Session["Username"] = Username; Thread.Sleep(milliseconds); Response.Redirect("AfterLogin1.aspx"); } else { Thread.Sleep(milliseconds); lblMsg.Text = "Username and Password is incorrect"; } }
protected void menuPaste_Click(object sender, EventArgs e) { FineUIPro.TreeNode treenode = firsttree.SelectedNode; if (treenode.Attributes["nodemenu"].ToString().Trim() == "2") { string strtid = cloneID.Text.Trim(); string strpid = treenode.NodeID.Trim(); cd_thermal ct = new cd_thermal(); //检查空才克隆并保存 if (strtid != "" && strpid != "") { if (ct.isExistdata("cd_thermal", "pid", strpid, "ID").Trim() != "") { Alert.Show("当前零件热处理工艺不为空"); } else { string strtcode = gettcode(); string strtname = treenode.Text.Trim() + "热处理工艺卡"; string[] sqltext = ct.clonethermal(Guid.NewGuid().ToString().Trim(), strtname, strtcode, strpid, SessionUserName.Trim(), strtid); int intresult = ct.ExecMutri(sqltext); Alert alert = new Alert(); if (intresult > 0) { alert.Icon = Icon.Information; alert.Message = "数据克隆成功"; } else { alert.MessageBoxIcon = MessageBoxIcon.Error; alert.Message = "数据克隆失败"; } alert.Show(); } } cloneID.Text = ""; btnmenuPaste.Enabled = false; } }