コード例 #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));
        }