private void DispositionEdit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LoadItemData();

            gunBookCustomer               = new CustomerVOForSupportApp();
            gunBookCustomer.FirstName     = dispositionCustFirstName;
            gunBookCustomer.LastName      = dispositionCustLastName;
            gunBookCustomer.MiddleInitial = dispositionCustMiddleName;
            AddressVO addr1 = new AddressVO();

            addr1.Address1           = dispositionCustomerAddress1;
            addr1.City               = dispositionCustomerCity;
            addr1.State_Code         = dispositionCustomerState;
            addr1.ZipCode            = dispositionCustomerZipcode;
            addr1.ContactTypeCode    = CustomerAddressTypes.HOME_ADDRESS;
            addr1.ContMethodTypeCode = "POSTALADDR";
            gunBookCustomer.addAddress(addr1);
            gunBookCustomer.CustomerNumber = dispositionCustNumber;
            IdentificationVO id = new IdentificationVO();

            id.IdType       = dispositionCustIDType;
            id.IdValue      = dispositionCustIDNumber;
            id.IdIssuerCode = dispositionCustIDAgency;
            id.IsLatest     = true;
            gunBookCustomer.addIdentity(id);
            CashlinxPawnSupportSession.Instance.ActiveCustomer     = gunBookCustomer;
            CashlinxPawnSupportSession.Instance.GunAcquireCustomer = false;
            CashlinxPawnSupportSession.Instance.CustomerEditType   = CustomerType.DISPOSITION;
            NavControlBox.IsCustom     = true;
            NavControlBox.CustomDetail = "EditCustomer";
            NavControlBox.Action       = NavBox.NavAction.BACKANDSUBMIT;
        }
Esempio n. 2
0
 /*__________________________________________________________________________________________*/
 private void LoadIDDataInObject()
 {
     //_updatedCustomer = new CustomerVOForSupportApp();
     _updatedCustomer = Support.Logic.CashlinxPawnSupportSession.Instance.ActiveCustomer;
     _updatedCustomer.removeIdentities();
     if (_custIdentities != null)
     {
         foreach (DataRow cust in _custIdentities.Rows)
         {
             IdentificationVO custid = new IdentificationVO
             {
                 IdType =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.IDENTTYPECODE], ""),
                 IdValue =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.ISSUEDNUMBER], ""),
                 IdIssuer =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.STATE_NAME], ""),
                 IdIssuerCode =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.ISSUERNAME], ""),
                 DatedIdentDesc =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.DATEDIDENTTYPEDESC], ""),
                 IdExpiryData =
                     Utilities.GetDateTimeValue(
                         cust.ItemArray[(int)customeridrecord.EXPIRYDATE],
                         DateTime.MaxValue),
                 IdentId =
                     Utilities.GetStringValue(
                         cust.ItemArray[(int)customeridrecord.IDENTID], "")
             };
             _updatedCustomer.addIdentity(custid);
         }
     }
 }