Esempio n. 1
0
        protected void lnkOk1_Click(object sender, EventArgs e)
        {
            AdministrationEDSC.StateDTRow dr = new AdministrationEDSC.StateDTDataTable().NewStateDTRow();
            dr = GetData();

            string userName = SystemConstants.DevUser;
            //Membership.GetUser().UserName;

            AdministrationDAC dac = new AdministrationDAC();

            if (Mode == SystemConstants.FormMode.New)
            {
                dac.CreateState(userName, dr);
            }
            else if (Mode == SystemConstants.FormMode.Edit)
            {
                dac.UpdateState(userName, dr);
            }
            Mode = SystemConstants.FormMode.View;
            SetData(dr);
        }