public static string SaveDesigner(string eno, string id, string sappraise, string sintroduce, string sname, string sqq, string stelephone) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { Sys_Designer sd = new Sys_Designer(); sd.eno = eno; sd.dappraise = sappraise; sd.dintroduce = sintroduce; sd.dname = sname; sd.dqq = sqq; sd.dtelephone = stelephone; sd.cdate = DateTime.Now.ToString(); sd.maker = iv.u.ename; if (!sdb.Exists(" and eno='" + eno + "'")) { if (sdb.Add(sd) > 0) { r = "S"; } else { r = "F"; } } else { if (sdb.Update(sd)) { r = "S"; } else { r = "F"; } } } else { r = iv.badstr; } return(r); }
public static string Query(string eno) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { Sys_Designer sd = sdb.Query(" and eno='" + eno + "'"); List <Sys_DesignerProduction> lsp = sdpb.QueryList(" and eno='" + eno + "' order by id"); if (lsp != null) { sd.sdp = lsp; } r = js.Serialize(sd); } else { r = iv.badstr; } return(r); }
public Sys_DesignerCreateOrUpdateCommand(Sys_Designer ent) { this.ent = ent; }