Ejemplo n.º 1
0
        public ActionResult Save(int id)
        {
            tblConsignorDTO tblConsignorDTO;

            if (id == 0)
            {
                tblConsignorDTO = new tblConsignorDTO();
            }
            else
            {
                tblConsignorDTO = ConsignorBusinessLogic.Get(id);
            }
            tblConsignorDTO = FillDropDown(tblConsignorDTO);
            return(View(tblConsignorDTO));
        }
Ejemplo n.º 2
0
        private void frmPartys_Load(object sender, EventArgs e)
        {
            if (PartyId > 0)
            {
                var partyDetails = ConsignorBusinessLogic.Get(PartyId);

                txtPartyName.Text = partyDetails.ConsignorName;
                txtCode.Text      = partyDetails.Code;
                if (partyDetails.Type == 1)
                {
                    cbType.SelectedItem = "Consignor";
                }
                else
                {
                    cbType.SelectedItem = "Consignee";
                }
                txtAddress.Text     = partyDetails.Address;
                txtPhoneNo.Text     = partyDetails.PhoneNo;
                txtSTNOCSTNO.Text   = partyDetails.STNOCSTNO;
                txtTINNOVATNO.Text  = partyDetails.TINNOVATNO;
                txtDescription.Text = partyDetails.Description;
            }
        }