Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString[SystemConstants.SuburbID] != null)
                {
                    int suburbID = Convert.ToInt32(Request.QueryString[SystemConstants.SuburbID]);
                    var dac      = new AdministrationDAC();
                    AdministrationEDSC.v_SuburbExplorerDTRow dr = null;

                    if (suburbID != 0)
                    {
                        dr = dac.RetrieveSuburb(suburbID);
                        SuburbSetupUC1.Mode = SystemConstants.FormMode.Edit;
                        SuburbSetupUC1.SetData(dr);
                    }
                    else
                    {
                        dr = new AdministrationEDSC.v_SuburbExplorerDTDataTable().Newv_SuburbExplorerDTRow();
                        SuburbSetupUC1.Mode = SystemConstants.FormMode.New;
                    }
                }
                CheckSignIn();
            }
        }