예제 #1
0
    public void UpdateIndividualClient()
    {
        //Get Clients profile information
        mainDSTableAdapters.ClientTableAdapter client = new mainDSTableAdapters.ClientTableAdapter();
        mainDS.ClientRow tblClient = client.GetClientProfile(MySessionManager.ClientID)[0];

        string Fullname = tblClient.datFirstName.ToString() + " " + tblClient.datMiddleName.ToString() + " " + tblClient.datSurname.ToString();

        //Delete all initiators tied up the application
        LoanDSTableAdapters.IntiatorTableAdapter initiator = new LoanDSTableAdapters.IntiatorTableAdapter();
        initiator.DeleteInitiator(MySessionManager.AppID, MySessionManager.ClientID);

        LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        loanApp.UpdateClientName(Fullname, MySessionManager.ClientID);
    }
예제 #2
0
    public void UpdateCompanyClientName(string ClientName)
    {
        //Copy the Initiator Details From the Clients  Table
        mainDSTableAdapters.ClientTableAdapter client = new mainDSTableAdapters.ClientTableAdapter();
        mainDS.ClientRow tblClient = client.GetClientProfile(MySessionManager.ClientID)[0];

        string Fullname = tblClient.datFirstName.ToString() + tblClient.datMiddleName.ToString() + tblClient.datSurname.ToString();

        LoanDSTableAdapters.IntiatorTableAdapter initiator = new LoanDSTableAdapters.IntiatorTableAdapter();
        initiator.InsertInitiator(MySessionManager.AppID,
                                  MySessionManager.ClientID,
                                  Fullname,
                                  null,
                                  tblClient.datMobileNumber1.ToString(),
                                  tblClient.datHomeTelephoneNumber.ToString(),
                                  tblClient.datEmailAddress.ToString(),
                                  tblClient.datFaxNumber.ToString(),
                                  tblClient.datCurrentResidentialAddress.ToString());


        LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        loanApp.UpdateClientName(ClientName, MySessionManager.ClientID);
    }
    public void UpdateIndividualClient()
    {
        //Get Clients profile information
        mainDSTableAdapters.ClientTableAdapter client = new mainDSTableAdapters.ClientTableAdapter();
        mainDS.ClientRow tblClient = client.GetClientProfile(MySessionManager.ClientID)[0];

        string Fullname = tblClient.datFirstName.ToString()+" "+tblClient.datMiddleName.ToString()+" "+ tblClient.datSurname.ToString();

        //Delete all initiators tied up the application
        LoanDSTableAdapters.IntiatorTableAdapter initiator = new LoanDSTableAdapters.IntiatorTableAdapter();
        initiator.DeleteInitiator(MySessionManager.AppID, MySessionManager.ClientID);
        
         LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        loanApp.UpdateClientName(Fullname, MySessionManager.ClientID); 
        
    
    }
    public void UpdateCompanyClientName(string ClientName)
    {

        //Copy the Initiator Details From the Clients  Table 
        mainDSTableAdapters.ClientTableAdapter client = new mainDSTableAdapters.ClientTableAdapter();
        mainDS.ClientRow tblClient = client.GetClientProfile(MySessionManager.ClientID)[0];

        string Fullname = tblClient.datFirstName.ToString()+ tblClient.datMiddleName.ToString()+ tblClient.datSurname.ToString();

        LoanDSTableAdapters.IntiatorTableAdapter initiator = new LoanDSTableAdapters.IntiatorTableAdapter();
        initiator.InsertInitiator (MySessionManager.AppID,
                                   MySessionManager.ClientID,
                                   Fullname,
                                   null,
                                   tblClient.datMobileNumber1.ToString(),
                                   tblClient.datHomeTelephoneNumber.ToString(),
                                   tblClient.datEmailAddress.ToString(),
                                   tblClient.datFaxNumber.ToString(),
                                   tblClient.datCurrentResidentialAddress.ToString());


        LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        loanApp.UpdateClientName(ClientName, MySessionManager.ClientID); 
    }