示例#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;
     }
 }