예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        public ObjectVersion Client_SearchByPersonalID(string personalID)
        {
            BankClientClass bankClientClass = new BankClientClass();

            return(bankClientClass.SearchClientByPersonalID(personalID));
        }
예제 #4
0
        public List <CaseInfo> Client_GetCaseInfo(string clientID)
        {
            BankClientClass bankClientClass = new BankClientClass();

            return(bankClientClass.GetCaseInfoList(clientID));
        }