/// <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; }