public void getReportInfoByTm() { MES_PD_TL model = new MES_PD_TL(); model.RWBH = Rwlist[Index].RWBH; model.TM = SMtextBox.Text.Trim().ToUpper(); model.JLR = Convert.ToInt32(getUserInfo("staffid")); MES_RETURN_UI res = ServicModel.PD_SCRW.FJTL_VERIFY(model, getToken()); if (res.TYPE.Equals("S")) { //foreach (Control contrl in panel1.Controls) //{ // if (contrl is TextBox) // { // contrl.BackColor = Color.FromArgb(187, 255, 102); // } //} qrtlbutton.Enabled = true; string datetime = ServicModel.PUBLIC_FUNC.GET_TIME(getToken()); tlsjtextBox.Text = Convert.ToDateTime(datetime).ToString("yyyy-MM-dd HH:mm"); tlsjtextBox.BackColor = Color.FromArgb(187, 255, 102); //MessageBox.Show("投料成功", "消息框"); ShowMeg("投料成功", 1500); } else { ShowMeg(res.MESSAGE); } SMtextBox.Clear(); SMtextBox.Select(); }
public MES_RETURN_UI INSERT(MES_PD_TL model, string ptoken) { MES_RETURN mr = client.INSERT(model, ptoken); MES_RETURN_UI mrui = new MES_RETURN_UI(); mrui.TYPE = mr.TYPE; mrui.MESSAGE = mr.MESSAGE; return(mrui); }
public MES_RETURN_UI FJTL_VERIFY(MES_PD_TL model, string ptoken) { model.TLLB = 1; MES_RETURN mr = client.FJTL_VERIFY(model, ptoken); MES_RETURN_UI mrui = new MES_RETURN_UI(); mrui.TYPE = mr.TYPE; mrui.MESSAGE = mr.MESSAGE; return(mrui); }
public MES_PD_TL_SELECT SELECT(MES_PD_TL model, string ptoken) { return(client.SELECT(model, ptoken)); }