Exemplo n.º 1
0
        protected void btnEditPort_Click(object sender, EventArgs e)
        {
            MDMSVC.DC_Message    _msg    = new MDMSVC.DC_Message();
            MDMSVC.DC_PortMaster _newObj = new MDMSVC.DC_PortMaster();
            _newObj.Port_Id       = Guid.Parse(Port_ID);
            _newObj.OAG_loc       = txtOAG_loc.Text;
            _newObj.OAG_multicity = txtOAG_multicity.Text;
            _newObj.Oag_lon       = txtoag_lon.Text;
            _newObj.Oag_inactive  = txtoag_inactive.Text;
            _newObj.MappingStatus = txtMappingStatus.Text;
            _newObj.Oag_ctryname  = txtoag_ctryname.Text;
            _newObj.Oag_state     = txtoag_state.Text;
            _newObj.Oag_substate  = txtoag_substate.Text;
            _newObj.Oag_timediv   = txtoag_timediv.Text;
            _newObj.Oag_lat       = txtoag_lat.Text;
            _newObj.OAG_type      = txtOAG_type.Text;
            _newObj.OAG_subtype   = txtOAG_subtype.Text;
            _newObj.Oag_name      = txtoag_name.Text;
            _newObj.Oag_portname  = txtoag_portname.Text;
            _newObj.Oag_ctry      = txtoag_ctry.Text;
            _newObj.Oag_subctry   = txtoag_subctry.Text;
            _newObj.City_Id       = Guid.Parse(ddlCityEdit.SelectedValue);
            _newObj.Country_Id    = Guid.Parse(ddlCountryEdit.SelectedValue);
            _newObj.State_Id      = Guid.Parse(ddlStateEdit.SelectedValue);

            _msg = _objMaster.UpdatePortMaster(_newObj);
            BootstrapAlert.BootstrapAlertMessage(dvMsg, _msg.StatusMessage, (BootstrapAlertType)_msg.StatusCode);
        }