Esempio n. 1
0
 private void btnItemAdd_Click(object sender, EventArgs e)
 {
     frmAddTaskForm frmAddTaskForm = new frmAddTaskForm();
     frmAddTaskForm.ShowDialog();
     if (frmAddTaskForm.DialogResult == DialogResult.OK)
     {
         AscmGetMaterialTask ascmGetMaterialTask = frmAddTaskForm.ascmGetMaterialTask;
         string jsonString = JsonConvert.SerializeObject(ascmGetMaterialTask);
         string message = "";
         AscmWebService.AscmWebService Service = new AscmWebService.AscmWebService();
         if (Service.AddUnAutoTask(frmMainView.encryptTicket, frmMainView.userName, jsonString, ref message))
         {
             pagerControlTask.Bind();
         }
     }
 }
Esempio n. 2
0
        private void btnItemAdd_Click(object sender, EventArgs e)
        {
            frmAddTaskForm frmAddTaskForm = new frmAddTaskForm();

            frmAddTaskForm.ShowDialog();
            if (frmAddTaskForm.DialogResult == DialogResult.OK)
            {
                AscmGetMaterialTask ascmGetMaterialTask = frmAddTaskForm.ascmGetMaterialTask;
                string jsonString = JsonConvert.SerializeObject(ascmGetMaterialTask);
                string message    = "";
                AscmWebService.AscmWebService Service = new AscmWebService.AscmWebService();
                if (Service.AddUnAutoTask(frmMainView.encryptTicket, frmMainView.userName, jsonString, ref message))
                {
                    pagerControlTask.Bind();
                }
            }
        }