示例#1
0
        private void qrbutton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(czrtextBox.Text.Trim()))
            {
                ShowMeg(q(Msg_Type.msgscangh));//"请扫描工号"
                smtextBox.Select();
                return;
            }
            MES_PD_TL_DELETE_IN model = new MES_PD_TL_DELETE_IN();

            model.GH      = Gh;
            model.GHNAME  = czrtextBox.Text.Trim().ToUpper();
            model.STAFFID = Convert.ToInt32(getUserInfo("staffid"));
            model.TMTLID  = MES_PD_TL_LIST.ID;
            MES_RETURN_UI res = ServicModel.PD_TLGL.DELETE(model, getToken());

            if (res.TYPE.Equals("S"))
            {
                ShowMeg(q(Msg_Type.msgdelsuccess), 1500);//"删除成功"
                if (block != null)
                {
                    block(MES_PD_TL_LIST.RWBH);
                }
                this.Close();
            }
            else
            {
                ShowMeg(res.MESSAGE);
            }
        }
示例#2
0
        public MES_RETURN_UI DELETE(MES_PD_TL_DELETE_IN model, string ptoken)
        {
            MES_RETURN    mr   = client.DELETE(model, ptoken);
            MES_RETURN_UI mrui = new MES_RETURN_UI();

            mrui.TYPE    = mr.TYPE;
            mrui.MESSAGE = mr.MESSAGE;
            return(mrui);
        }