Пример #1
0
        bool UpdateRecordCity()
        {
            bool IsUpdate = false;

            BLL.NewWebServices.BE_City NewBEObj = new BLL.NewWebServices.BE_City();
            //string[] ID = lblId.Text.Split(':');
            NewBEObj.CityID    = Convert.ToInt32(txtCityID.Text);
            NewBEObj.CityName  = txtCityName.Text;
            NewBEObj.Modify_At = GlobalVaribles.CurrentServerTime;
            //NewBEObj.Modify_ID = Convert.ToInt32(GlobalVaribles.dtSession.Rows[0]["UserID"]);
            NewBEObj.Modify_ID = GlobalVaribles.UserID;
            NewBEObj.Status    = chkIsActive.Checked;
            IsUpdate           = BLLObj.UpdateRecord(NewBEObj);
            return(IsUpdate);
        }
Пример #2
0
        bool SaveRecord()
        {
            bool IsSave   = false;
            bool IsString = false;

            IsString = GlobalVaribles.IsString(txtCityName.Text);
            BLL.NewWebServices.BE_City NewBEObj = new BLL.NewWebServices.BE_City();
            NewBEObj.CityName = txtCityName.Text;
            //NewBEObj.Created_Id = Convert.ToInt32(GlobalVaribles.dtSession.Rows[0]["UserID"]);
            NewBEObj.Created_Id = GlobalVaribles.UserID;
            NewBEObj.Status     = chkIsActive.Checked;
            NewBEObj.Created_At = GlobalVaribles.CurrentServerTime;
            NewBEObj.Modify_At  = GlobalVaribles.CurrentServerTime;
            IsSave = BLLObj.SaveRecord(NewBEObj);
            return(IsSave);
        }