Exemplo n.º 1
0
 private void InsterData()
 {
     vw_DurmsUpFeedingModel = new SRCfPExecute.vw_DurmsUpFeeding()
     {
         DeveUseStatus = 1
     };
     vwDurmsUpFeedingBindingSource.DataSource = vw_DurmsUpFeedingModel;
     vw_DurmsUpFeedingModel.CreateTime        = DateTime.Now;
     vw_DurmsUpFeedingModel.Creator           = context.UserName;
     vw_DurmsUpFeedingModel.VouchDate         = DateTime.Today.Date;
     RFIDCodeTextEdit.Properties.ReadOnly     = true;
 }
Exemplo n.º 2
0
        private void ResetBtn_Click(object sender, EventArgs e)
        {
            //if (ClsMsg.ShowQuestionMsg("是否要测试工艺规划明细数据?") == DialogResult.Yes)
            //{
            //    BgWait.RunWorkerAsync("InsterCraProDataById");
            //}

            if (ClsMsg.ShowQuestionMsg("是否要清除该界面所有信息呢?") == DialogResult.Yes)
            {
                vw_DurmsUpFeedingModel = new SRCfPExecute.vw_DurmsUpFeeding();
                vwDurmsUpFeedingBindingSource.DataSource = vw_DurmsUpFeedingModel;
                DeveUseStatusSpinEdit.Text      = "";
                DeveUseStatusSpinEdit.EditValue = null;
                OperatDescEdit.Text             = "";
                NewCraftsName.Text = "";
                FrequencyEdit.Text = "";
                vw_DurmsUpFeedingModel.CreateTime = DateTime.Now;
                vw_DurmsUpFeedingModel.Creator    = context.UserName;


                gridControl1.RefreshDataSource();
                arrangedVouchLogBindingSource.DataSource = null;
            }
        }