Example #1
0
        private void AddData()
        {
            DeviCodeTextEdit.Properties.ReadOnly = false;

            model = new SRExcute.DeviceExecute();
            deviceExecuteBindingSource.DataSource = model;

            model.CreateDate   = DateTime.Now;
            model.CreatePerson = context.UserName;
        }
Example #2
0
 private void InitData()
 {
     using (SRExcute.DevExecuteServiceClient client = new SRExcute.DevExecuteServiceClient())
     {
         var ret = client.GetDeviceExecute(context.SessionID, strDeviCode);
         if (ret.IsSuccess)
         {
             model = ret.Data;
             this.Invoke((MethodInvoker) delegate()
             {
                 deviceExecuteBindingSource.DataSource = model;
             });
         }
         else
         {
             ClsMsg.ShowErrMsg(ret.Message);
         }
     }
 }