/// <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; }
protected override void InitData() { _projectsPresenter.Display(); if (KeyValue != null) { _projectPresenter.Display(KeyValue); } else { txtProjectCode.Text = GetAutoNumber(); } }
/// <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"); }