Ejemplo 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();
         }
     }
 }
Ejemplo 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();
                }
            }
        }