/// <summary> /// Loads the UpdateCollectionByRequisitions form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { commonUI.MasterPage.setCurrentPage(this); if (!IsPostBack) { if (Request.QueryString["CollectionIdIndex"] == null) { ucdbrControl = new StationeryStoreInventorySystemController.departmentController.UpdateCollectionDetailsByRequisitionControl(); StationeryStoreInventorySystemController.Util.PutSession(sessionKey, ucdbrControl); } else { ucdbrControl = (UpdateCollectionDetailsByRequisitionControl)StationeryStoreInventorySystemController.Util.GetSession(sessionKey); if (ucdbrControl.SelectCollection(SystemStoreInventorySystemUtil.Converter.objToInt(Request.QueryString["CollectionIdIndex"])) == SystemStoreInventorySystemUtil.Constants.ACTION_STATUS.SUCCESS) { FillRequisitionDetails(ucdbrControl.RequestDetail); lblCollectionID.Text = ucdbrControl.RequestDetailCollectionId; //lblDateTime.Text = ucdbrControl.RequestDetailCollectionDateTime; lblCollectionPoint.Text = ucdbrControl.RequestDetailCollectionPoint; Util.PutSession("CollectionIdIndex", Request.QueryString["CollectionIdIndex"]); } else { // print message not found } } } else { ucdbrControl = (UpdateCollectionDetailsByRequisitionControl)StationeryStoreInventorySystemController.Util.GetSession(sessionKey); } FillCollectionDetails(ucdbrControl.CollectionList); }