public ObjectVersion ClientCaseRetail_Create(BankClient bankClient, BankCaseRetail CaseRetail) { ObjectVersion RetValue = new ObjectVersion(); BankClientClass bankClientClass = new BankClientClass(); string PID = bankClient.PersonalID; ObjectVersion objectVersion = bankClientClass.SearchClientByPersonalID(PID); if (objectVersion != null) { RetValue = objectVersion; } else { RetValue = bankClientClass.CreateClient(bankClient).ObjectVersion; } CaseRetail.Client = Convert.ToInt32(RetValue.DisplayID); BankCaseRetailClass bankCaseRetailClass = new BankCaseRetailClass(); string mAppID = CaseRetail.ApplicationID; RetValue = this.CaseRetail_SearchByApplicationID(mAppID); if (RetValue == null) { RetValue = bankCaseRetailClass.CreateCaseRetail(CaseRetail).ObjectVersion; } return(RetValue); }
public ObjectVersion Client_Create(BankClient bankClient) { BankClientClass bankClientClass = new BankClientClass(); string PID = bankClient.PersonalID; ObjectVersion objectVersion = bankClientClass.SearchClientByPersonalID(PID); if (objectVersion != null) { return(objectVersion); } else { return(bankClientClass.CreateClient(bankClient).ObjectVersion); } }