Beispiel #1
0
 private void ShowInfo(decimal Re_ID)
 {
     Maticsoft.BLL.Material_Receive   bll   = new Maticsoft.BLL.Material_Receive();
     Maticsoft.Model.Material_Receive model = bll.GetModel(Re_ID);
     this.lblRe_ID.Text         = model.Re_ID.ToString();
     this.lblReceiveID.Text     = model.ReceiveID;
     this.lblMaterialNum.Text   = model.MaterialNum;
     this.lblClientNum.Text     = model.ClientNum;
     this.lblCount.Text         = model.Count;
     this.lblUserID.Text        = model.UserID;
     this.lblWorkStationID.Text = model.WorkStationID;
     this.lblDataTime.Text      = model.DataTime.ToString();
 }
        //
        //领取记录
        //
        private void dgv_Receive_Record_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                Set_IsEn(true, false);
                DataRowView dr = (DataRowView)dgv_Receive_Record.SelectedItem;

                decimal.TryParse(dr["Re_ID"].ToString(), out _WTT_Rece_ID);
                _MRce = _M_MaterReceive.GetModel(_WTT_Rece_ID);
                if (_MRce != null)
                {
                    txb_Client.Text       = _MRce.Client;
                    txb_MaterialPath.Text = _MRce.ClientNum;
                    txb_Count.Text        = _MRce.Count;
                }
            }
            catch
            {
                // My_MessageBox.My_MessageBox_Erry(ex.Message + "\r\n弹出此错题的原因是您选择的列为空列!");
            }
        }