private SubmitRequestToStoreControl GetsrtsControl()
 {
     if (srtsCtrl == null)
     {
         srtsCtrl = new SubmitRequestToStoreControl();
     }
     return(srtsCtrl);
 }
 /// <summary>
 /// Fills Requisition list to DataGrid
 /// </summary>
 /// <param name="dtCollection"></param>
 private void FillRequisitionList()
 {
     try
     {
         srtsCtrl = GetsrtsControl();
         DataTable dtRequisition = srtsCtrl.ApprovedRequisitionList;
         dgvRequisitions.DataSource = dtRequisition;
         dgvRequisitions.DataBind();
     }
     catch (Exception e)
     {
         Logger.WriteErrorLog(e);
     }
 }
        /// <summary>
        /// Loads the SubmitRequisitionsToStore form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                commonUI.MasterPage.setCurrentPage(this);
                srtsCtrl = GetsrtsControl();
                StationeryStoreInventorySystemController.Util.PutSession(sessionKey, srtsCtrl);

                if (srtsCtrl.CollectionPoint.Equals(SubmitRequestToStoreControl.UNKNOWN_COLLECTION_POINT))
                {
                    btnSave.Enabled = false;
                }
                lblCollectionPoint.Text = srtsCtrl.CollectionPoint;
                lblCollectionID.Text    = srtsCtrl.CollectionId;
            }
            else
            {
                srtsCtrl = (SubmitRequestToStoreControl)StationeryStoreInventorySystemController.Util.GetSession(sessionKey);
            }
            FillRequisitionList();
        }