Example #1
0
        public MES_RETURN_UI UPDATE_TLTMTH(MES_PD_TL_UPDATE_TLTMTH_IN model, string ptoken)
        {
            MES_RETURN    mr   = client.UPDATE_TLTMTH(model, ptoken);
            MES_RETURN_UI mrui = new MES_RETURN_UI();

            mrui.TYPE    = mr.TYPE;
            mrui.MESSAGE = mr.MESSAGE;
            return(mrui);
        }
Example #2
0
 private void qrbutton_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(mbmtextBox.Text.Trim()))
     {
         ShowMeg(q(Msg_Type.msgnotmreplacesure));//"没有条码无法进行替换确认"
         smtextBox.Select();
         return;
     }
     if (string.IsNullOrEmpty(czrtextBox.Text.Trim()))
     {
         ShowMeg(q(Msg_Type.msgscangh));//"请扫描工号"
         smtextBox.Select();
         return;
     }
     if (MessageBox.Show(q(Msg_Type.msgwhetherreplacetmtlxx), q(Msg_Type.msgtitle), MessageBoxButtons.OKCancel) == DialogResult.OK)//"是否替换条码投料信息", "消息框"
     {
         MES_PD_TL_UPDATE_TLTMTH_IN model = new MES_PD_TL_UPDATE_TLTMTH_IN();
         model.GH      = Gh;
         model.GHNAME  = czrtextBox.Text.Trim().ToUpper();
         model.STAFFID = Convert.ToInt32(getUserInfo("staffid"));;
         model.TM      = ResList.TM;
         model.TMTLID  = MES_PD_TL_LIST.ID;
         MES_RETURN_UI res = ServicModel.PD_TLGL.UPDATE_TLTMTH(model, getToken());
         if (res.TYPE.Equals("S"))
         {
             if (block != null)
             {
                 block(MES_PD_TL_LIST.RWBH);
                 this.Close();
             }
         }
         else
         {
             ShowMeg(res.MESSAGE);
         }
     }
 }