Esempio n. 1
0
    protected void btnEditShifts_Click(object sender, EventArgs e)
    {
        MasterEntries objMasterEntry = new MasterEntries();
        int           Id             = Convert.ToInt32(Session["shiftId"]);
        MasterShifts  objShift       = new MasterShifts();

        objShift.Name            = txtEditName.Text;
        objShift.FirstHalfStart  = TimeSpan.Parse(txtEditFirstHalfStart.Text);
        objShift.FirstHalfEnd    = TimeSpan.Parse(txtEditFirstHalfEnd.Text);
        objShift.SecondHalfStart = TimeSpan.Parse(txtEditSecondHalfStart.Text);
        objShift.SecondHalfEnd   = TimeSpan.Parse(txtEditSecondHalfEnd.Text);
        objShift.SHLDuration     = TimeSpan.Parse(txtEditSLDuration.Text);
        objMasterEntry.UpdateShifts(Id, objShift);
        grdShiftsBind();
        popupEditShifts.Hide();
    }
 protected void btnEditShifts_Click(object sender, EventArgs e)
 {
     MasterEntries objMasterEntry = new MasterEntries();
     int Id = Convert.ToInt32(Session["shiftId"]);
     MasterShifts objShift = new MasterShifts();
     objShift.Name = txtEditName.Text;
     objShift.FirstHalfStart = TimeSpan.Parse(txtEditFirstHalfStart.Text);
     objShift.FirstHalfEnd = TimeSpan.Parse(txtEditFirstHalfEnd.Text);
     objShift.SecondHalfStart = TimeSpan.Parse(txtEditSecondHalfStart.Text);
     objShift.SecondHalfEnd = TimeSpan.Parse(txtEditSecondHalfEnd.Text);
     objShift.SHLDuration = TimeSpan.Parse(txtEditSLDuration.Text);
     objMasterEntry.UpdateShifts(Id, objShift);
     grdShiftsBind();
     popupEditShifts.Hide();
 }