public static string QueryProduction(string sid, string gnum) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); B_AfterGroupProduction ao = new B_AfterGroupProduction(); if (iv.f) { ao = bagpb.Query(" and sid='" + sid + "' and gnum=" + gnum + ""); r = js.Serialize(ao); } else { r = iv.badstr; } return(r); }
public static string SaveProductionRemark(string sid, string gnum, string adremark) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); B_AfterGroupProduction ao = new B_AfterGroupProduction(); if (iv.f) { if (bagpb.SetRemark(sid, gnum, adremark)) { r = "S"; } else { r = "F"; } } else { r = iv.badstr; } return(r); }
public static string DelProduction(string sid, string gnum) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); B_AfterGroupProduction ao = new B_AfterGroupProduction(); if (iv.f) { if (bagpb.Delete(" and sid='" + sid + "' and gnum=" + gnum + "")) { bitb.Delete(sid, gnum); r = "S"; } else { r = "F"; } } else { r = iv.badstr; } return(r); }
public static string AddProduction(string direction, string fixs, string ggy, string glasss, string gsize, string itype, string locks, string mname, string msname, string pd, string ph, string place, string pmsd, string pname, string pnum, string premark, string psid, string pw, string sid, string sitype, string stype) { string r = ""; SessionUserValidate iv = SysValidateBll.ValidateSession(); B_AfterGroupProduction ao = new B_AfterGroupProduction(); if (iv.f) { ao.direction = direction; ao.fixs = fixs; ao.glass = glasss; ao.gsize = gsize; ao.height = Convert.ToInt32(ph); ao.width = Convert.ToInt32(pw); ao.deep = Convert.ToInt32(pd); ao.iheight = 0; ao.iwidth = 0; ao.ideep = 0; ao.pnum = Convert.ToDecimal(pnum); ao.itype = itype; ao.locks = locks; ao.mname = mname; ao.place = place; ao.pname = pname; ao.remark = premark; ao.sid = sid; ao.stype = stype; ao.msname = msname; ao.sitype = sitype; ao.maker = iv.u.ename; ao.ggy = ggy; ao.pmsd = pmsd; ao.cdate = DateTime.Now.ToString(); if (psid == "") { ao.gnum = bagpb.GetGnum(" and sid='" + sid + "'"); ao.psid = CommonBll.GetSid(); if (bagpb.Add(ao) > 0) { r = "S"; } else { r = "F"; } } else { ao.psid = psid; if (bagpb.Update(ao)) { r = "S"; } else { r = "F"; } } } else { r = iv.badstr; } return(r); }