예제 #1
0
 private void bbtnSendToSigning_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Forms.ContractForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractForm);
     childForm.SaveContracChanges();
     childForm.SendContractToSigning();
     childForm.FillAgreemenst();
 }
예제 #2
0
        private void bbtnNewContract_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            bbtnSave.Enabled = true;
            var tmpform = new Forms.ContractForm(0);

            tmpform.MdiParent = this;
            tmpform.Show();
        }
예제 #3
0
        private void bbtnOpenContract_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Forms.ContractSelectForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractSelectForm);
            int rowIndex = childForm.gvList.GetSelectedRows()[0];
            int id       = Convert.ToInt32(childForm.gvList.GetRowCellValue(rowIndex, "ID"));

            Forms.ContractForm form = new Forms.ContractForm(id);
            form.MdiParent = this;
            form.Show();
        }
예제 #4
0
 private void bbtnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Forms.ContractForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractForm);
     if (childForm.IsValid())
     {
         childForm.SaveContracChanges();
         updateContracts();
         bbtnSave.Enabled = false;
     }
 }