protected void btnSave_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(hdRegNo.Value)) { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (oConfig != null) { ACERegister oACERegister = new ACERegister(); IssueDAL oIssueDAL = new IssueDAL(); oACERegister.RegNo = hdRegNo.Value; oACERegister.AccountNo = txtPDAccDraftNo.Text.Trim(); oACERegister.Status = ddlStatus.SelectedValue; oACERegister.StatusDate = DateTime.Today; oACERegister.InventoryLocation = txtInvLocation.Text; oACERegister.Remarks = txtRemarks.Text.ToUpper(); oACERegister.BankID = oConfig.BankCodeID; oACERegister.DivisionID = oConfig.DivisionID; //User Details oACERegister.UserDetails = ucUserDet.UserDetail; oACERegister.UserDetails.MakeDate = DateTime.Now; //Response.Redirect(Consants.PAGE_TRAN_ISSUE_UPDATE + "?sIsUpdate=" + oCrypManager.GetEncryptedString("1") + "&sRegID=" + oCrypManager.GetEncryptedString(txtRegistrationNo.Text) + "&sPageID=" + oCrypManager.GetEncryptedString(Convert.ToString((int)Constants.PAGEINDEX_TRANS.SP_ISSUE_UPDATE).PadLeft(5, '0')), false); Result oResult = (Result)oIssueDAL.SaveACERegister(oACERegister); if (oResult.Status) { TotalClear(); LoadPreviousList(); ucMessage.OpenMessage(Constants.MSG_SUCCESS_SAVE, Constants.MSG_TYPE_SUCCESS); } else { ucMessage.OpenMessage(Constants.MSG_ERROR_SAVE, Constants.MSG_TYPE_ERROR); } } else { ucMessage.OpenMessage(Constants.MSG_ERROR_SAVE, Constants.MSG_TYPE_ERROR); } } else { ucMessage.OpenMessage("You must load Issue first before updating Issue Detail!", Constants.MSG_TYPE_INFO); } }