Exemplo n.º 1
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _projectPresenter.DisplayProject(KeyValue);
     //_accountingObjectsPresenter.DisplayByIsCustomerVendor(true);
     _projectsPresenter.DisplayByObjectType("2");
     if (KeyValue != null)
     {
         _projectPresenter.Display(KeyValue);
         //if (lkUpTargetProgram.GetColumnValue("ProjectId") != null)
         //    txtTargetProjectName.EditValue = lkUpTargetProgram.GetColumnValue("ProjectName").ToString();
         //else
         //    txtTargetProjectName.EditValue = "";
         //txtxBankName.EditValue = lkuBankAccount.GetColumnValue("BankName") == null ? "" : lkuBankAccount.GetColumnValue("BankName").ToString();
     }
     else
     {
         dateStartDate.EditValue = DateTime.Now;
         //if (CurrentNode != null)
         //{
         //    lkUpTargetProgram.EditValue = ((ProjectModel)CurrentNode).ProjectId;
         //    txtTargetProjectName.Text = ((ProjectModel)CurrentNode).ProjectName;
         //}
     }
     this.EditBank = false;
 }
Exemplo n.º 2
0
 protected override void InitData()
 {
     _projectsPresenter.Display();
     if (KeyValue != null)
     {
         _projectPresenter.Display(KeyValue);
     }
     else
     {
         txtProjectCode.Text = GetAutoNumber();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     if (KeyValue != null)
     {
         _projectPresenter.Display(KeyValue);
     }
     else
     {
         if (CurrentNode != null)
         {
             var projectId = ((ProjectModel)CurrentNode).ProjectId;
             lukTargetProgram.EditValue = projectId;
             //var projectName = ((ProjectModel)CurrentNode).ProjectName.Trim();
             //lukTargetProgram.Text = projectName;
         }
     }
     _projectsPresenter.DisplayByObjectType("1");
 }