Ejemplo n.º 1
0
        private void SetPartyMasterAddress(string partycode)
        {
            var result = _objDalPartyMaster.GetPartyMasterByID(new Models.PartyMasterRQ()
            {
                PartyCode = partycode
            });

            if (result != null && !string.IsNullOrWhiteSpace(result.PartyCode))
            {
                txtboxAddress.Text = result.Address;
            }
        }
Ejemplo n.º 2
0
 private void FillPartyMasterForUpdate(int partyId)
 {
     try
     {
         _objDal = new DAL_PartyMaster();
         var result = _objDal.GetPartyMasterByID(new PartyMasterRQ()
         {
             PartyId = partyId
         });
         if (result != null && result.PartyName != null)
         {
             lblPartyId.Text       = result.PartyId.ToString();
             btnUpdate.Enabled     = true;
             btnCreate.Enabled     = false;
             txtAddress.Text       = result.Address;
             txtContactPerson.Text = result.ContactPerson;
             txtEmail.Text         = result.Email;
             txtFax.Text           = result.Fax;
             txtMobile.Text        = result.Mobile;
             txtPager.Text         = result.Pager;
             txtPartyName.Text     = result.PartyName;
             txtPhone.Text         = result.Phone;
             chckStatus.Checked    = result.IsActive;
             txtPartyCode.Text     = result.PartyCode;
         }
         else
         {
             btnCreate.Enabled = true;
             btnUpdate.Enabled = false;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }