public MES_RETURN_UI DELETE_LOG(MES_TM_TMINFO_DELETE_IN model, string ptoken) { MES_RETURN mr = client.DELETE_LOG(model, ptoken); MES_RETURN_UI mrui = new MES_RETURN_UI(); mrui.TYPE = mr.TYPE; mrui.MESSAGE = mr.MESSAGE; return(mrui); }
public string POST_TM_DELETE(string datastring) { int STAFFID = Convert.ToInt32(AppClass.GetSession("STAFFID")); string token = AppClass.GetSession("token").ToString(); MES_TM_TMINFO_DELETE_IN model_MES_TM_TMINFO_DELETE_IN = Newtonsoft.Json.JsonConvert.DeserializeObject <MES_TM_TMINFO_DELETE_IN>(datastring); model_MES_TM_TMINFO_DELETE_IN.STAFFID = STAFFID; MES_RETURN_UI rst_MES_RETURN_UI = mesModels.TM_TMINFO.DELETE_LOG(model_MES_TM_TMINFO_DELETE_IN, token); return(Newtonsoft.Json.JsonConvert.SerializeObject(rst_MES_RETURN_UI)); }
private void qrbutton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(czrtextBox.Text.Trim())) { ShowMeg(q(Msg_Type.msgscangh));//"请扫描工号" smtextBox.Select(); return; } if (string.IsNullOrEmpty(ytmtextBox.Text.Trim())) { ShowMeg(q(Msg_Type.msgscantm));//"请扫描条码" smtextBox.Select(); return; } MES_TM_TMINFO_DELETE_IN model = new MES_TM_TMINFO_DELETE_IN(); model.TM = ytmtextBox.Text.Trim(); model.YGH = Gh; model.YGNAME = czrtextBox.Text.Trim(); model.STAFFID = Convert.ToInt32(getUserInfo("staffid"));; MES_RETURN_UI res = ServicModel.TM_TMINFO.DELETE_LOG(model, getToken()); if (res.TYPE.Equals("S")) { ShowMeg(q(Msg_Type.msgdelsuccess), 1500);//"删除成功" ytmtextBox.Clear(); ytmwllbtextBox.Clear(); tlsstextBox.Clear(); czrtextBox.Clear(); Gh = ""; } else { ShowMeg(res.MESSAGE); } }