private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlCurrency, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); DDListUtil.LoadCheckBoxListFromDB(chkLSpType, "SPTypeID", "TypeDesc", "SPMS_SPType"); txtFromDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtToDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); // load Report Type List rdlReportType.Items.Add(new ListItem("Paid", Constants.ACTIVITY_TYPE.PAID.ToString())); rdlReportType.Items.Add(new ListItem("Claimed", Constants.ACTIVITY_TYPE.CLAIMED.ToString())); rdlReportType.Items.Add(new ListItem("Cleared", Constants.ACTIVITY_TYPE.CLEARED.ToString())); rdlReportType.Items[0].Selected = true; Util.RBLChangeSetColor(rdlReportType); Util.RBLChangeColor(rdlReportType); }
private void InitializeData() { string sRegNo = Request.QueryString[OBJ_REG_NO]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; //Temporary table creation this.InitializeTmpTable(); //Controls initialize DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlMaker, "UserName", "UserName", "SA_User", false); DDListUtil.LoadDDLFromXML(ddlAccountNo, "JournalAccount", "Type", "JournalAccount", false); txtTransDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); if (true) { //sRegNo = oCrypManager.GetDecryptedString(sRegNo, Constants.CRYPT_PASSWORD_STRING); //sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; LoadUnapprovedAccRecon(); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. #region Enable-disable controls Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); #endregion Enable-disable controls } else { //Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; //UserDetails oUserDetails = new UserDetails(); //oUserDetails.MakerID = oConfig.UserName; //oUserDetails.MakeDate = DateTime.Now; //ucUserDet.UserDetail = oUserDetails; //EnableDisableControl(true); } }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlJournalType, "JournalType", "Description", "SPMS_JournalType", true); ReportDAL rdal = new ReportDAL(); Result oResult = rdal.LoadAccountingEntryOperator(); if (oResult.Status) { DataTable dtAccountUser = (DataTable)oResult.Return; DDListUtil.Assign(ddlOperator, dtAccountUser, false); } txtToDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtFromDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); chkAccEntryOper.Checked = true; chkJournalType.Checked = true; chkUploadDataRange.Checked = true; }
private void InitializeData() { DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); gvSearchList.PageSize = (int)Constants.PAGING_SEARCH; rdolApproval.Items[0].Enabled = true; rdolApproval.Items[1].Enabled = true; if (this.Type.Equals("2") || this.Type.Equals("4") || this.Type.Equals("5") || this.Type.Equals("9") || this.Type.Equals("8") || this.Type.Equals("11") || this.Type.Equals("12")) //Issue Update(4) + stop payment(5) + LM(9) + "Interest Payment(8) + Encashment (11) " { rdolApproval.Items[0].Enabled = false; rdolApproval.Items[0].Selected = false; rdolApproval.Items[1].Enabled = true; rdolApproval.Items[1].Selected = true; } Clear(); }
private void InitializeData() { gvData.DataSource = null; gvData.DataBind(); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromXML(ddlDuration, "DateDuration", "Type", "Duration", false); ddlDuration.Enabled = false; txtStatementDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtDateFrom.ReadOnly = true; txtTotalFaceValue.Text = "0.00"; // year for (int i = 1995; i < DateTime.Now.Year + 1 + 1; i++) { DDListUtil.Add(ddlYear, i.ToString(), i.ToString()); } DDListUtil.Assign(ddlYear, DateTime.Now.Year); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadCheckBoxListFromDB(chkLSpType, "SPTypeID", "TypeDesc", "SPMS_SPType"); DDListUtil.LoadDDLFromDB(ddlUserName, "UserName", "UserName", "SA_User", false); txtFromDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtToDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); // load Report Type List rdlStatus.Items.Add(new ListItem("Lien Mark", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_MARK))); rdlStatus.Items.Add(new ListItem("Lien Mark Remove", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_MARK_REMOVE))); rdlStatus.Items.Add(new ListItem("Active Lien", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_ACTIVE))); rdlStatus.Items.Add(new ListItem("Lien Status", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_STATUS))); rdlStatus.Items[0].Selected = true; Util.RBLChangeSetColor(rdlStatus); Util.RBLChangeColor(rdlStatus); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlCurrency, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); DDListUtil.LoadCheckBoxListFromDB(chkLSpType, "SPTypeID", "TypeDesc", "SPMS_SPType"); txtDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); //exclusive currency list int i = ddlCurrency.Items.Count; for (int j = 0; j < i; j++) { for (int k = 0; k < i; k++) { if (ddlCurrency.Items[k].Value != "" && ddlCurrency.Items[k].Value != "00" && ddlCurrency.Items[k].Value != "01") { ddlCurrency.Items.RemoveAt(k); i--; j--; break; } } } ListItem li = new ListItem(); li.Value = "99"; li.Text = "All"; ddlCurrency.Items.Add(li); // load Report Type List rdlStatus.Items.Add(new ListItem("Issue", Convert.ToString((int)Constants.ACTIVITY_TYPE.ISSUE))); rdlStatus.Items.Add(new ListItem("Old Issue", Convert.ToString((int)Constants.ACTIVITY_TYPE.ISSUE_OLD))); rdlStatus.Items.Add(new ListItem("Reinvest", Convert.ToString((int)Constants.ACTIVITY_TYPE.REINVESTMENT))); rdlStatus.Items.Add(new ListItem("Stop Payment", Convert.ToString((int)Constants.ACTIVITY_TYPE.STOP_PAYMENT))); rdlStatus.Items.Add(new ListItem("Stop Payment Remove", Convert.ToString((int)Constants.ACTIVITY_TYPE.STOP_PAYMENT_REMOVE))); rdlStatus.Items.Add(new ListItem("Duplicate Issue", Convert.ToString((int)Constants.ACTIVITY_TYPE.DUPLICATE_ISSUE))); rdlStatus.Items.Add(new ListItem("Lien Mark", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_MARK))); rdlStatus.Items.Add(new ListItem("Lien Mark Remove", Convert.ToString((int)Constants.ACTIVITY_TYPE.LIEN_MARK_REMOVE))); rdlStatus.Items[0].Selected = true; Util.RBLChangeSetColor(rdlStatus); Util.RBLChangeColor(rdlStatus); Util.ChkChangeSetColor(chkBelow); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadCheckBoxListFromDB(chkLSpType, "SPTypeID", "TypeDesc", "SPMS_SPType"); DDListUtil.LoadDDLFromDB(ddlUserName, "UserName", "UserName", "SA_User", false); txtFromDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtToDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); // load Report Type List rdlStatus.Items.Add(new ListItem("Stop Payment", Convert.ToString((int)Constants.ACTIVITY_TYPE.STOP_PAYMENT))); rdlStatus.Items.Add(new ListItem("Duplicate Issue", Convert.ToString((int)Constants.ACTIVITY_TYPE.DUPLICATE_ISSUE))); rdlStatus.Items.Add(new ListItem("Active Stop Payment", Convert.ToString((int)Constants.ACTIVITY_TYPE.STOP_PAYMENT_ACTIVE))); rdlStatus.Items.Add(new ListItem("Active Duplicate Issue", Convert.ToString((int)Constants.ACTIVITY_TYPE.DUPLICATE_ISSUE_ACTIVE))); rdlStatus.Items.Add(new ListItem("Stop Payment Remove", Convert.ToString((int)Constants.ACTIVITY_TYPE.STOP_PAYMENT_REMOVE))); rdlStatus.Items[0].Selected = true; Util.RBLChangeSetColor(rdlStatus); Util.RBLChangeColor(rdlStatus); }
private void InitializeData() { gvData.DataSource = null; gvData.DataBind(); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromXML(ddlDuration, "DateDuration", "Type", "Duration", false); ddlDuration.Enabled = false; txtStatementDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); // year for (int i = 1995; i < DateTime.Now.Year + 1 + 1; i++) { DDListUtil.Add(ddlYear, i.ToString(), i.ToString()); } txtDateFrom.ReadOnly = true; DDListUtil.Assign(ddlYear, DateTime.Now.Year); ClaimDAL claimDAL = new ClaimDAL(); //Store BASE_CURRENCY ViewState[_BASE_CUREENCY] = claimDAL.GetBaseCurrencyID(); }
private void Initialization() { DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); txtDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); DDListUtil.LoadDDLFromXML(ddlAccNumbe, "JournalAccount", "Type", "JournalAccount", false); DDListUtil.LoadDDLFromXML(ddlJournalStatus, "JournalStatus", "Type", "JournalStatus", false); lblAccName.Text = "Softcell Solution Ltd "; foreach (ListItem lstItem in rdlType.Items) { if (lstItem.Selected == true) { lstItem.Attributes["style"] = "color:#EE8927; forecolor:black; font-weight:bold"; lstItem.Attributes["onclick"] = string.Format("RbChangeColor( this ), rdlInitSetUp(this) "); } else { lstItem.Attributes["style"] = "color:#000000; forecolor:black; font-weight:normal "; lstItem.Attributes["onclick"] = string.Format("RbChangeColor( this ), rdlInitSetUp(this) "); } } }
private void InitializeData() { gvData.DataSource = null; gvData.DataBind(); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); // year for (int i = 1995; i < DateTime.Now.Year + 1 + 1; i++) { DDListUtil.Add(ddlYear, i.ToString(), i.ToString()); } ddlYear.Text = DateTime.Now.Year.ToString(); //Set ToDate txtClaimDate.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtPaymentDateFrom.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtPaymentDateTo.Text = DateTime.Now.ToString("dd/MM/yyyy"); ClaimDAL claimDAL = new ClaimDAL(); //Store BASE_CURRENCY ViewState[_BASE_CUREENCY] = claimDAL.GetBaseCurrencyID(); }
private void InitializeData() { //SIssue.Type = Convert.ToString((int)Constants.SEARCH_ISSUE.LIEN_MARK); gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; TotalClear(); gvData.DataSource = null; gvData.DataBind(); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlBranch, "BranchID", "BranchName", "SPMS_Branch", true); txtCDUpTo.Text = "1";//Default value string sRegNo = Request.QueryString[OBJ_REG_NO]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sRegNo)) { sRegNo = oCrypManager.GetDecryptedString(sRegNo, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sRegNo) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { SEARCH_FROM = 3; Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; LoadDataByRegNo("", sRegNo, "1");//query from Temp UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; } } else { // user Detail #region User-Detail. Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. // fsList.Visible = true; LoadPreviousList(); } }
private void InitializeData() { gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlUserClass, "GroupID", "GroupName", "SA_Group", true); DDListUtil.LoadDDLFromDB(ddlDesignation, "DesignationID", "Description", "SA_Designation", true); DDListUtil.LoadDDLFromDB(ddlDivision, "DivisionID", "DivisionName", "SPMS_Division", true); Util.ChkChangeSetColor(chkStatus); string sUserID = Request.QueryString[OBJ_USER_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sUserID)) { sUserID = oCrypManager.GetDecryptedString(sUserID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(sUserID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(sUserID); // general Control Util.ControlEnabled(txtLoginUserID, false); Util.ControlEnabled(ddlUserClass, false); Util.ControlEnabled(ddlDesignation, false); Util.ControlEnabled(ddlDivision, false); Util.ControlEnabled(txtUserFirstName, false); Util.ControlEnabled(txtUserLastName, false); Util.ControlEnabled(txtConfirmPassword, false); Util.ControlEnabled(txtNewPassword, false); Util.ControlEnabled(chkStatus, false); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnLoad, false); Util.ControlEnabled(btnFirst, false); Util.ControlEnabled(btnPrevious, false); Util.ControlEnabled(btnNext, false); Util.ControlEnabled(btnLast, false); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // general Control Util.ControlEnabled(txtLoginUserID, true); Util.ControlEnabled(ddlUserClass, true); Util.ControlEnabled(ddlDesignation, true); Util.ControlEnabled(ddlDivision, true); Util.ControlEnabled(txtUserFirstName, true); Util.ControlEnabled(txtUserLastName, true); Util.ControlEnabled(txtConfirmPassword, true); Util.ControlEnabled(txtNewPassword, true); Util.ControlEnabled(chkStatus, true); // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnLoad, true); Util.ControlEnabled(btnFirst, true); Util.ControlEnabled(btnPrevious, true); Util.ControlEnabled(btnNext, true); Util.ControlEnabled(btnLast, true); #region User-Detail. Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); UserDetails oUserDetails = new UserDetails(); oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; LoadList(); } }
private void InitializeData() { gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; TotalClear(); gvData.DataSource = null; gvData.DataBind(); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtMakerId"), false); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerId"), false); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlBranch, "BranchID", "BranchName", "SPMS_Branch", true); string sRegNo = Request.QueryString[OBJ_REG_NO]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; //Issue Details Util.ControlEnabled(txtStopTransNo, false); Util.ControlEnabled(txtStopDate, false); Util.ControlEnabled(ddlBranch, false); Util.ControlEnabled(txtIssueDate, false); Util.ControlEnabled(txtStopAmount, false); Util.ControlEnabled(ddlCustomerType, false); Util.ControlEnabled(ddlSpType, false); Util.ControlEnabled(txtIssueName, false); Util.ControlEnabled(txtMasterID, false); //Stop Payment Remove Mark Transaction No Util.ControlEnabled(txtRemoveTransNo, false); // Remarks Util.ControlEnabled(txtStopRemarks, false); if (!string.IsNullOrEmpty(sRegNo)) { sRegNo = oCrypManager.GetDecryptedString(sRegNo, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sRegNo) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; gvData.Enabled = false; hdDataType.Value = ""; hdButtonType.Value = "D"; SEARCH_FROM = 1; LoadDataByRegNo("", sRegNo, "1"); // comes from Tmp table. gvData.Enabled = false; //Stop Payment Remove Mark Transaction No Util.ControlEnabled(btnRemoveSearch, false); Util.ControlEnabled(btnRegSearch, false); Util.ControlEnabled(txtDuplicateIssueDate, false); gvDenomDetail.Enabled = false; btnAddDenomination.Enabled = false; // Remarks Util.ControlEnabled(txtIssueRemarks, false); Util.ControlEnabled(txtDuplicateMark, false); Util.ControlEnabled(ddlDDDenom, false); Util.ControlEnabled(txtDDQuantity, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { gvData.Enabled = true; //Stop Payment Remove Mark Transaction No Util.ControlEnabled(btnRemoveSearch, true); Util.ControlEnabled(txtDuplicateIssueDate, false); //Issue Details //Util.ControlEnabled(txtRegNo, true); Util.ControlEnabled(btnRegSearch, true); gvDenomDetail.Enabled = true; btnAddDenomination.Enabled = true; // Remarks Util.ControlEnabled(txtIssueRemarks, true); Util.ControlEnabled(txtDuplicateMark, true); // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; fsList.Visible = true; LoadPreviousList(); } }
public void SetPolicyDetails(SPPolicy oSPPolicy) { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromXML(ddlApplicableSex, "ApplicableSex", "Type", "Sex", true); // gvCustomerType load 6. Eligibility UtilityDAL oUtilityDAL = new UtilityDAL(); Result oResult = new Result(); oResult = oUtilityDAL.GetDDLDataList("CustomerTypeID", "TypeDesc", "SPMS_CustomerType", true); if (oResult.Status) { DataTable dtGetAll = (DataTable)oResult.Return; gvCustomerType.DataSource = dtGetAll; gvCustomerType.DataBind(); gvCustomerType.Enabled = false; GridViewRowCollection growArr = (GridViewRowCollection)gvCustomerType.Rows; foreach (GridViewRow row in growArr) { row.Cells[1].Visible = false; } } else { gvCustomerType.DataSource = false; gvCustomerType.DataBind(); } // common DDListUtil.Assign(ddlSPType, oSPPolicy.SPType.SPTypeID); ddlSPType.Enabled = false; txtEffectiveDate.Text = oSPPolicy.PolicyEffectDate.ToString(Constants.DATETIME_FORMAT); txtEffectiveDate.Enabled = false; // 1.0 General Util.SetRadioData(rblIsSPDurationInMonth, oSPPolicy.IsSPDurationInMonth); rblIsSPDurationInMonth.Enabled = false; Util.RBLChangeSetColor(rblIsSPDurationInMonth); rblIsSPDurationInMonth.Enabled = false; txtDuration.Text = oSPPolicy.SPDuration.ToString(); txtDuration.Enabled = false; txtNoOfCoupon.Text = oSPPolicy.NoOfCoupons.ToString(); txtNoOfCoupon.Enabled = false; DDListUtil.Assign(ddlIntrType, oSPPolicy.SPInterestType); ddlIntrType.Enabled = false; Util.SetRadioData(rblInterestTypeAfterIntPayment, oSPPolicy.InterestTypeAfterIntPayment); Util.RBLChangeSetColor(rblInterestTypeAfterIntPayment); rblInterestTypeAfterIntPayment.Enabled = false; DDListUtil.Assign(ddlPreMatIntrType, oSPPolicy.PreMaturityInterestType); ddlPreMatIntrType.Enabled = false; Util.SetRadioData(rblGSPreMatIntrClaim, oSPPolicy.PreMatIntTypeAfterIntPayment); rblGSPreMatIntrClaim.Enabled = false; Util.RBLChangeSetColor(rblGSPreMatIntrClaim); Util.SetRadioData(rblIsBondHolderRequired, oSPPolicy.IsBondHolderRequired); Util.RBLChangeSetColor(rblIsBondHolderRequired); rblIsBondHolderRequired.Enabled = false; Util.SetRadioData(rblIsNomineePerScripRequired, oSPPolicy.IsNomineePerScripRequired); Util.RBLChangeSetColor(rblIsNomineePerScripRequired); rblIsNomineePerScripRequired.Enabled = false; Util.SetRadioData(rblIsFoeignAddressRequired, oSPPolicy.IsFoeignAddressRequired); Util.RBLChangeSetColor(rblIsFoeignAddressRequired); rblIsFoeignAddressRequired.Enabled = false; Util.SetRadioData(rblReinvestmentSuported, oSPPolicy.ReinvestmentSuported); Util.RBLChangeSetColor(rblReinvestmentSuported); rblReinvestmentSuported.Enabled = false; Util.SetRadioData(rblInterestReinvestable, oSPPolicy.InterestReinvestable); Util.RBLChangeSetColor(rblInterestReinvestable); rblInterestReinvestable.Enabled = false; txtReinNumber.Text = oSPPolicy.MaxNoOfReinvestment.ToString(); txtReinNumber.Enabled = false; Util.SetRadioData(rblPartiallyEncashable, oSPPolicy.PartiallyEncashable); Util.RBLChangeSetColor(rblPartiallyEncashable); rblPartiallyEncashable.Enabled = false; Util.SetRadioData(rblPartiallyEncashedReinvestable, oSPPolicy.PartiallyEncashedReinvestable); Util.RBLChangeSetColor(rblPartiallyEncashedReinvestable); rblPartiallyEncashedReinvestable.Enabled = false; // 2.0 Currency Setup DataTable oDtCurr = new DataTable("dtDataCurrency"); oDtCurr.Columns.Add(new DataColumn("bfActivityType", typeof(string))); oDtCurr.Columns.Add(new DataColumn("bfCurrency", typeof(string))); DataRow rowCurr = null; for (int i = 0; i < oSPPolicy.CurrencyActivityPolicy.Count; i++) { rowCurr = oDtCurr.NewRow(); rowCurr["bfActivityType"] = oSPPolicy.CurrencyActivityPolicy[i].ActivityTypeID + " : " + oSPPolicy.CurrencyActivityPolicy[i].ActivityTypeValue; rowCurr["bfCurrency"] = oSPPolicy.CurrencyActivityPolicy[i].Currency.CurrencyID + " : " + oSPPolicy.CurrencyActivityPolicy[i].Currency.CurrencyCode; oDtCurr.Rows.Add(rowCurr); } gvActiCurrency.DataSource = oDtCurr; gvActiCurrency.DataBind(); gvActiCurrency.Enabled = false; // 3.0 Early Encashment Setup txtEarlyEncashCouponNo.Text = oSPPolicy.NoOfCoupons.ToString(); txtEarlyEncashCouponNo.Enabled = false; txtCommonIntRate.Enabled = false; chkMaturedCoupon.Enabled = false; DataTable oDtEE = new DataTable("dtDataEE"); oDtEE.Columns.Add(new DataColumn("bfCouponInstallmentNo", typeof(string))); oDtEE.Columns.Add(new DataColumn("bfMonthFrom", typeof(string))); oDtEE.Columns.Add(new DataColumn("bfMonthTo", typeof(string))); oDtEE.Columns.Add(new DataColumn("bfInterestRate", typeof(string))); oDtEE.Columns.Add(new DataColumn("bfNoOfSlabsIntPayable", typeof(string))); DataRow rowEE = null; for (int i = 0; i < oSPPolicy.EarlyEncashmentPolicy.Count; i++) { rowEE = oDtEE.NewRow(); rowEE["bfCouponInstallmentNo"] = oSPPolicy.EarlyEncashmentPolicy[i].SlabNo.ToString(); rowEE["bfMonthFrom"] = oSPPolicy.EarlyEncashmentPolicy[i].MonthFrom.ToString(); rowEE["bfMonthTo"] = oSPPolicy.EarlyEncashmentPolicy[i].MonthTo.ToString(); rowEE["bfInterestRate"] = oSPPolicy.EarlyEncashmentPolicy[i].InterestRate.ToString(); rowEE["bfNoOfSlabsIntPayable"] = oSPPolicy.EarlyEncashmentPolicy[i].NoOfSlabsIntPayable.ToString(); oDtEE.Rows.Add(rowEE); } gvEncashmentIntRate.DataSource = oDtEE; gvEncashmentIntRate.DataBind(); gvEncashmentIntRate.Enabled = false; // 4.0 General Interest Setup txtGeneralIntCouponNo.Text = oSPPolicy.NoOfCoupons.ToString(); txtGeneralIntCouponNo.Enabled = false; txtGIClaimRate.Enabled = false; txtNonclaimIntRate.Enabled = false; DataTable oDtGI = new DataTable("dtDataG"); oDtGI.Columns.Add(new DataColumn("bfCouponInstallmentNo", typeof(string))); oDtGI.Columns.Add(new DataColumn("bfMonthFrom", typeof(string))); oDtGI.Columns.Add(new DataColumn("bfMonthTo", typeof(string))); oDtGI.Columns.Add(new DataColumn("bfClaimRate", typeof(string))); oDtGI.Columns.Add(new DataColumn("bfNonclaimIntRate", typeof(string))); DataRow rowGI = null; for (int i = 0; i < oSPPolicy.GeneralInterestPolicy.Count; i++) { rowGI = oDtGI.NewRow(); rowGI["bfCouponInstallmentNo"] = oSPPolicy.GeneralInterestPolicy[i].SlabNo.ToString(); rowGI["bfMonthFrom"] = oSPPolicy.GeneralInterestPolicy[i].MonthFrom.ToString(); rowGI["bfMonthTo"] = oSPPolicy.GeneralInterestPolicy[i].MonthTo.ToString(); rowGI["bfClaimRate"] = oSPPolicy.GeneralInterestPolicy[i].ClaimRate.ToString(); rowGI["bfNonclaimIntRate"] = oSPPolicy.GeneralInterestPolicy[i].NonClaimRate.ToString(); oDtGI.Rows.Add(rowGI); } gvGeneralInt.DataSource = oDtGI; gvGeneralInt.DataBind(); gvGeneralInt.Enabled = false; // 5.0 Commission Setup txtComSetNonOrgComm.Text = oSPPolicy.NonOrgCommission.ToString(); txtComSetNonOrgComm.Enabled = false; Util.SetRadioData(rblComSetNonOrgChargeOnPer, oSPPolicy.NonOrgCommissionType.Substring(0, oSPPolicy.NonOrgCommissionType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetNonOrgChargeOnPer); rblComSetNonOrgChargeOnPer.Enabled = false; Util.SetRadioData(rblComSetNonOrgCalculateInt, oSPPolicy.NonOrgCommissionType.Substring(oSPPolicy.NonOrgCommissionType.Length > 1 ? 1 : 0, oSPPolicy.NonOrgCommissionType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetNonOrgCalculateInt); rblComSetNonOrgCalculateInt.Enabled = false; txtComSetOrgCommission.Text = oSPPolicy.OrgCommission.ToString(); txtComSetOrgCommission.Enabled = false; Util.SetRadioData(rblComSetOrgChargeOnPer, oSPPolicy.OrgCommissionType.Substring(0, oSPPolicy.OrgCommissionType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetOrgChargeOnPer); rblComSetOrgChargeOnPer.Enabled = false; Util.SetRadioData(rblComSetOrgCalculateInt, oSPPolicy.OrgCommissionType.Substring(oSPPolicy.OrgCommissionType.Length > 1 ? 1 : 0, oSPPolicy.OrgCommissionType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetOrgCalculateInt); rblComSetOrgCalculateInt.Enabled = false; txtComSetIntRemuneration.Text = oSPPolicy.InterestRemuneration.ToString(); txtComSetIntRemuneration.Enabled = false; Util.SetRadioData(rblComSetIntRemuChargeOnPer, oSPPolicy.InterestRemunerationType.Substring(0, oSPPolicy.InterestRemunerationType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetIntRemuChargeOnPer); rblComSetIntRemuChargeOnPer.Enabled = false; Util.SetRadioData(rblComSetIntRemuCalculateInt, oSPPolicy.InterestRemunerationType.Substring(oSPPolicy.InterestRemunerationType.Length > 1 ? 1 : 0, oSPPolicy.InterestRemunerationType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetIntRemuCalculateInt); rblComSetIntRemuCalculateInt.Enabled = false; txtComSetRemuneration.Text = oSPPolicy.Remuneration.ToString(); txtComSetRemuneration.Enabled = false; Util.SetRadioData(rblComSetRemuChargeOnPer, oSPPolicy.RemunerationType.Substring(0, oSPPolicy.RemunerationType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetRemuChargeOnPer); rblComSetRemuChargeOnPer.Enabled = false; Util.SetRadioData(rblComSetRemuCalculateInt, oSPPolicy.RemunerationType.Substring(oSPPolicy.RemunerationType.Length > 1 ? 1 : 0, oSPPolicy.RemunerationType.Length > 1 ? 1 : 0)); Util.RBLChangeSetColor(rblComSetRemuCalculateInt); rblComSetRemuCalculateInt.Enabled = false; txtComSetLevi.Text = oSPPolicy.Levi.ToString(); txtComSetLevi.Enabled = false; Util.SetRadioData(rblComSetLevi, oSPPolicy.LeviType); Util.RBLChangeSetColor(rblComSetLevi); rblComSetLevi.Enabled = false; txtComSetIncomeTax.Text = oSPPolicy.IncomeTax.ToString(); txtComSetIncomeTax.Enabled = false; Util.SetRadioData(rblComSetIncomeTax, oSPPolicy.IncomeTaxType.ToString()); Util.RBLChangeSetColor(rblComSetIncomeTax); rblComSetIncomeTax.Enabled = false; txtComSetIncomeTaxAbove.Text = oSPPolicy.IncomeTaxApplyAmount.ToString(); txtComSetIncomeTaxAbove.Enabled = false; Util.SetCheckData(chkYearly, oSPPolicy.IncomeTaxYearlyYN); Util.ChkChangeSetColor(chkYearly); chkYearly.Enabled = false; txtSocialSecurityAmount.Text = oSPPolicy.SocialSecurityAmount.ToString(); txtSocialSecurityAmount.Enabled = false; Util.SetRadioData(rblSocialSecurityAmount, oSPPolicy.SocialSecurityAmountType.ToString()); Util.RBLChangeSetColor(rblSocialSecurityAmount); rblSocialSecurityAmount.Enabled = false; // 6.0 Eligibility ArrayList alCTPID = new ArrayList(); if (oSPPolicy.CustomerTypePolicy.Count > 0) { int i = 0; foreach (CustomerTypePolicy oCTP in oSPPolicy.CustomerTypePolicy) { alCTPID.Insert(i, oCTP.CustomerType.CustomerTypeID); i++; } } GridViewRowCollection gvRows = (GridViewRowCollection)gvCustomerType.Rows; foreach (GridViewRow row in gvRows) { CheckBox oCheckBox = (CheckBox)row.FindControl("chkCusomerType"); if (alCTPID.Contains(row.Cells[1].Text)) { oCheckBox.Checked = true; } else { oCheckBox.Checked = false; } } // Eligibility grid.. DataTable oDtEli = new DataTable("dtDataEli"); oDtEli.Columns.Add(new DataColumn("bfCustActiType", typeof(string))); oDtEli.Columns.Add(new DataColumn("bfPayModeType", typeof(string))); DataRow rowEli = null; for (int i = 0; i < oSPPolicy.PaymentPolicy.Count; i++) { rowEli = oDtEli.NewRow(); rowEli["bfCustActiType"] = oSPPolicy.PaymentPolicy[i].ActivityTypeID + " : " + oSPPolicy.PaymentPolicy[i].ActivityTypeValue; rowEli["bfPayModeType"] = oSPPolicy.PaymentPolicy[i].PaymentModeID + " : " + oSPPolicy.PaymentPolicy[i].PaymentModeValue; oDtEli.Rows.Add(rowEli); } gvEliPaymentPolicy.DataSource = oDtEli; gvEliPaymentPolicy.DataBind(); gvEliPaymentPolicy.Enabled = false; // end of Eligibility grid.. DDListUtil.Assign(ddlApplicableSex, oSPPolicy.SupportedSex); ddlApplicableSex.Enabled = false; txtMinimumAge.Text = oSPPolicy.MinimumAge.ToString(); txtMinimumAge.Enabled = false; txtMaximumAge.Text = oSPPolicy.MaximumAge.ToString(); txtMaximumAge.Enabled = false; }
private void InitializeData() { lblTitle.Text = Title; DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); Clear(); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromXML(ddlScriptFormat, "ScriptFormatMapping", "ReportType", "SP", true); gvList.PageSize = (int)Constants.PAGING_UNAPPROVED; SPTypeDAL oSPTypeDAL = new SPTypeDAL(); SetDenominationBySPTypeID(oSPTypeDAL); string sPTypeID = Request.QueryString[OBJ_SPTYPE_ID]; string sDenomID = Request.QueryString[OBJ_DENOM_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sPTypeID)) { sPTypeID = oCrypManager.GetDecryptedString(sPTypeID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sDenomID)) { sDenomID = oCrypManager.GetDecryptedString(sDenomID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(sPTypeID) && !string.IsNullOrEmpty(sDenomID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(sPTypeID, sDenomID); // general Control Util.ControlEnabled(ddlSPType, false); Util.ControlEnabled(ddlDenomination, false); Util.ControlEnabled(ddlScriptFormat, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnSearch, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnSearch, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail. UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; LoadList(); } }
private void InitializeData() { //gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlDepartmentID, "DepartmentID", "Description", "SA_Department", true); GroupDAL gpDal = new GroupDAL(); Result oR = gpDal.GetOperationType(); DataTable dtOt = null; if (oR.Status) { dtOt = (DataTable)oR.Return; Session[Constants.SES_GROUP_OPERATION_DATA] = dtOt; } string gpID = Request.QueryString[OBJ_GP_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(gpID)) { gpID = oCrypManager.GetDecryptedString(gpID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } LoadScreenList(); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(gpID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(Util.GetIntNumber(gpID)); // control Util.ControlEnabled(txtDescription, false); Util.ControlEnabled(txtGroupName, false); Util.ControlEnabled(ddlDepartmentID, false); gvScreenList.Enabled = false; // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnFirst, false); Util.ControlEnabled(btnPrevious, false); Util.ControlEnabled(btnNext, false); Util.ControlEnabled(btnLast, false); #region User-Detail. Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. //fsList.Visible = false; } } else { // control Util.ControlEnabled(txtDescription, true); Util.ControlEnabled(txtGroupName, true); Util.ControlEnabled(ddlDepartmentID, true); gvScreenList.Enabled = true; // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnFirst, true); Util.ControlEnabled(btnPrevious, true); Util.ControlEnabled(btnNext, true); Util.ControlEnabled(btnLast, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail. UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. //fsList.Visible = true; //LoadList(); } }
private void InitializeData() { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; gvList.PageSize = (int)Constants.PAGING_UNAPPROVED; if (Session[Constants.SES_SPTYPELIST] == null) { Session.Add(Constants.SES_SPTYPELIST, new SPTypeList()); } else { Session[Constants.SES_SPTYPELIST] = new SPTypeList(); } if (Session[Constants.SES_SPTYPE] == null) { Session.Add(Constants.SES_SPTYPE, new SPType()); } else { Session[Constants.SES_SPTYPE] = new SPType(); } SPTypeDAL spTypeDal = new SPTypeDAL(); spTypeList = new SPTypeList(); Result oRslSPTypeList = spTypeDal.LoadList(oConfig.UserName); spTypeList = (SPTypeList)oRslSPTypeList.Return; Session[Constants.SES_SPTYPELIST] = spTypeList; gvDenom.DataSource = null; gvDenom.DataBind(); hdDataType.Value = ""; // Dropdown load DDListUtil.LoadDDLFromDB(ddlCurrency, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); string sPTypeID = Request.QueryString[OBJ_SPTYPE_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sPTypeID)) { sPTypeID = oCrypManager.GetDecryptedString(sPTypeID, Constants.CRYPT_PASSWORD_STRING).Trim(); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING).Trim(); } if (!string.IsNullOrEmpty(sPTypeID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { if (spTypeList.ListOfSPType.Count > 0) { LoadDenomDataListBySPTypeID(sPTypeID.Trim(), spTypeList); LoadSPDetailData(sPTypeID.Trim(), spTypeList); } // general Control Util.ControlEnabled(txtSpTypeId, false); Util.ControlEnabled(txtDescription, false); Util.ControlEnabled(ddlCurrency, false); Util.ControlEnabled(txtDenomination, false); Util.ControlEnabled(txtReOrderLevel, false); Util.ControlEnabled(txtSeries, false); Util.ControlEnabled(txtNoOfDigitInSeries, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnLoad, false); Util.ControlEnabled(btnSaveDenom, false); Util.ControlEnabled(btnDenomReset, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; fsDenom.Visible = true; } } else { // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnLoad, true); Util.ControlEnabled(btnSaveDenom, true); Util.ControlEnabled(btnDenomReset, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail. UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; fsDenom.Visible = true; LoadSPDataList(spTypeList); } }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); txtDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlCustType, "CustomerTypeID", "TypeDesc", "SPMS_CustomerType", true); gvList.PageSize = (int)Constants.PAGING_SEARCH; string sPTypeID = Request.QueryString[OBJ_SPTYPE_GROPU_ID]; string sCustomerID = Request.QueryString[OBJ_CUSTOMER_GROPU_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; hdCustomerID.Value = string.Empty; if (!string.IsNullOrEmpty(sPTypeID)) { sPTypeID = oCrypManager.GetDecryptedString(sPTypeID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sCustomerID)) { sCustomerID = oCrypManager.GetDecryptedString(sCustomerID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(sPTypeID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(sCustomerID, sPTypeID); // general Control Util.ControlEnabled(ddlSPType, false); Util.ControlEnabled(ddlCustType, false); Util.ControlEnabled(txtMaxLim, false); Util.ControlEnabled(txtMinLim, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnSearch, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnSearch, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; LoadList(); } }
private void InitializeData() { string sRegID = Request.QueryString[OBJ_REG_NO]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; string sIsUpdate = Request.QueryString[OBJ_IS_UPDATE]; if (!string.IsNullOrEmpty(sRegID)) { sRegID = oCrypManager.GetDecryptedString(sRegID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sIsUpdate)) { sIsUpdate = oCrypManager.GetDecryptedString(sIsUpdate, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; // common portion to Enabled or not // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlBranch, "BranchID", "BranchName", "SPMS_Branch", true); gvNomDetail.DataSource = null; gvNomDetail.DataBind(); gvCustomerDetail.DataSource = null; gvCustomerDetail.DataBind(); // year for (int i = 1990; i < 2020; i++) { DDListUtil.Add(ddlYear, i.ToString(), i.ToString()); } if (!string.IsNullOrEmpty(sRegID) && !string.IsNullOrEmpty(sPageID) && sIsUpdate.Equals("0")) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { // come from approve page.. LoadDataByRegNo(string.Empty, sRegID, "1"); EnableDisableControl(true); divOldNominee.Visible = true; // user detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. } } else { fsList.Visible = true; LoadUnapprovedList(); // come from View page.. if (!string.IsNullOrEmpty(sIsUpdate) && sIsUpdate.Equals("1")) { LoadDataByRegNo(string.Empty, sRegID, "1"); divOldNominee.Visible = false; } if (oConfig != null) { UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; } EnableDisableControl(false); } }
private void InitializeData() { //Load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); TotalClear(); }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlPDCurrencyCode, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); }
private void InitializeData() { gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; ClearDetailTextValue(); gvReceiveDetail.DataSource = null; gvReceiveDetail.DataBind(); // Issue set in session if (Session[Constants.SES_RECEIVE] == null) { Receive oSesReceive = new Receive(); Session.Add(Constants.SES_RECEIVE, oSesReceive); } else { Receive oSesReceive = new Receive(); Session[Constants.SES_RECEIVE] = oSesReceive; } // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSPType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); string sTranID = Request.QueryString[OBJ_TRANSC_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sTranID)) { sTranID = oCrypManager.GetDecryptedString(sTranID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sTranID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; LoadDataByID(sTranID, "1"); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); EnableDisableControl(true); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. } } else { EnableDisableControl(false); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; LoadPreviousList(); } }
private void InitializeData() { // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlCurrencyID, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); gvList.PageSize = (int)Constants.PAGING_UNAPPROVED; string sCurrencyID = Request.QueryString[OBJ_CURRENCY_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sCurrencyID)) { sCurrencyID = oCrypManager.GetDecryptedString(sCurrencyID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(sCurrencyID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(sCurrencyID); // general Control Util.ControlEnabled(ddlCurrencyID, false); Util.ControlEnabled(txtSusPenAcc, false); Util.ControlEnabled(txtSusPenName, false); Util.ControlEnabled(txtForExcchAcc, false); Util.ControlEnabled(txtForExcchName, false); Util.ControlEnabled(txtBraFaxAcc, false); Util.ControlEnabled(txtBraFaxName, false); Util.ControlEnabled(txtBraExcFaxAcc, false); Util.ControlEnabled(txtBraExcFaxName, false); Util.ControlEnabled(txtBngBankAcc, false); Util.ControlEnabled(txtBngBankName, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnLoad, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnLoad, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail. UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; LoadList(); } }
private void InitializeData() { // Dropdown load string sMonth = DateTime.Today.Month.ToString(); DDListUtil.Assign(ddlFromMonth, sMonth); DDListUtil.Assign(ddlToMonth, sMonth); DDListUtil.LoadDDLFromDB(ddlBranchCode, "BranchID", "BBCode", "SPMS_Branch", true); DDListUtil.LoadDDLFromXML(ddlCountryName, "Country", "Type", "Country", true); DDListUtil.LoadDDLFromXML(ddlFromMonth, "Month", "Type", "Month", true); DDListUtil.LoadDDLFromXML(ddlToMonth, "Month", "Type", "Month", true); if (ddlCountryName.Items.Count > 0) { ddlCountryName.SelectedIndex = 1; } gvBankList.PageSize = (int)Constants.PAGING_UNAPPROVED; string sBankID = Request.QueryString[OBJ_BANK_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sBankID)) { sBankID = oCrypManager.GetDecryptedString(sBankID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (!string.IsNullOrEmpty(sBankID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { LoadDataByID(sBankID); // general Control Util.ControlEnabled(txtBankID, false); Util.ControlEnabled(txtAddress, false); Util.ControlEnabled(txtDivisionName, false); Util.ControlEnabled(txtBdBankCode, false); Util.ControlEnabled(txtZipCode, false); Util.ControlEnabled(ddlCountryName, false); Util.ControlEnabled(txtPhoneNumber, false); Util.ControlEnabled(txtEmailID, false); Util.ControlEnabled(txtFaxNumber, false); Util.ControlEnabled(txtAddress, false); Util.ControlEnabled(txtSWIFTBIC, false); Util.ControlEnabled(ddlFromMonth, false); Util.ControlEnabled(ddlToMonth, false); Util.ControlEnabled(ddlBranchCode, false); // user Detail Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnLoad, false); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnSearch, false); #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnLoad, true); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnSearch, true); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); #region User-Detail UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; LoadList(); } }
private void InitializeData() { hdRegNo.Value = ""; // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); DDListUtil.LoadDDLFromDB(ddlBranch, "BranchID", "BranchName", "SPMS_Branch", true); DDListUtil.LoadDDLFromDB(ddlCollectionBranch, "BranchID", "BranchName", "SPMS_Branch", true); DDListUtil.LoadDDLFromDB(ddlPDPaymentMode, "PaymentMode", "Description", "SPMS_PaymentMode", true); DDListUtil.LoadDDLFromDB(ddlPDCurrency, "CurrencyID", "CurrencyCode", "SPMS_Currency", true); // end of Intial Data // Issue Details txtIssueDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); Util.ControlEnabled(ddlSpType, false); Util.ControlEnabled(ddlBranch, false); Util.ControlEnabled(ddlCollectionBranch, false); Util.ControlEnabled(txtIssueDate, false); Util.ControlEnabled(ddlCustomerType, false); Util.ControlEnabled(txtAppliedAmount, false); // Bond Holder Details Util.ControlEnabled(txtBHDHolderName, false); //Util.ControlEnabled(txtIssueName, false); Util.ControlEnabled(txtBHDAddress, false); Util.ControlEnabled(txtBHDRelation, false); // payment mode Util.ControlEnabled(ddlPDPaymentMode, false); Util.ControlEnabled(ddlPDCurrency, false); Util.ControlEnabled(txtPDAccDraftNo, false); Util.ControlEnabled(txtPDAccName, false); Util.ControlEnabled(txtPDConvRate, false); Util.ControlEnabled(txtPDPaymentAmount, false); Util.ControlEnabled(ucUserDet.FindControl("txtMakerId"), false); Util.ControlEnabled(ucUserDet.FindControl("txtMakeDate"), false); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerId"), false); Util.ControlEnabled(ucUserDet.FindControl("txtCheckDate"), false); Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); gvCustomerDetail.DataSource = null; gvCustomerDetail.DataBind(); gvNomDetail.DataSource = null; gvNomDetail.DataBind(); //gvNomDemon.DataSource = null; //gvNomDemon.DataBind(); gvDenomDetail.DataSource = null; gvDenomDetail.DataBind(); //ddlTaxYear.SelectedValue = DateTime.Today.Year.ToString(); string sRegNo = ""; sRegNo = Request.QueryString["qRegNo"]; if (!string.IsNullOrEmpty(sRegNo)) { sRegNo = oCrypManager.GetDecryptedString(sRegNo, Constants.CRYPT_PASSWORD_STRING); } if (sRegNo == null) { sRegNo = ""; } if (sRegNo.Trim() != "") { LoadDataByID(sRegNo); } }
private void InitializeData() { gvIntClaimDetail.PageSize = (int)Constants.PAGING_UNAPPROVED; gvClaim.DataSource = null; gvClaim.DataBind(); gvIntClaimDetail.DataSource = null; gvIntClaimDetail.DataBind(); // Dropdown load SPType DDListUtil.LoadDDLFromDB(ddlSpType, "SPTypeID", "TypeDesc", "SPMS_SPType", true); // year for (int i = 1995; i < DateTime.Today.Year + 1; i++) { DDListUtil.Add(ddlYear, i.ToString(), i.ToString()); } DDListUtil.Assign(ddlYear, DateTime.Now.Year); //Initial Value Set txtReconciliationDate.Text = DateTime.Now.ToString(Constants.DATETIME_FORMAT); txtReimConvRate.Text = "1.0000"; txtCovRateToBC.Text = "1.00"; string sRefNo = Request.QueryString[OBJ_REF_NO]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(sRefNo)) { sRefNo = oCrypManager.GetDecryptedString(sRefNo, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sRefNo) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; SEARCH_FROM = 2; LoadDataByReferenceNo(sRefNo, "1");//query from Temp Table #region User-Detail. UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; EnableDisableControl(true); } } else { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; UserDetails oUserDetails = new UserDetails(); oUserDetails.MakerID = oConfig.UserName; oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; fsList.Visible = true; LoadPreviousList(); EnableDisableControl(false); } }
private void InitializeData() { gvData.PageSize = (int)Constants.PAGING_UNAPPROVED; DDListUtil.LoadDDLFromDB(ddlOperationTypeId, "OperationTypeID", "Description", "SA_OperationType", true); string ScrID = Request.QueryString[OBJ_SCREEN_ID]; string sPageID = Request.QueryString[OBJ_PAGE_ID]; if (!string.IsNullOrEmpty(ScrID)) { ScrID = oCrypManager.GetDecryptedString(ScrID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(sPageID)) { sPageID = oCrypManager.GetDecryptedString(sPageID, Constants.CRYPT_PASSWORD_STRING); } if (!string.IsNullOrEmpty(ScrID) && !string.IsNullOrEmpty(sPageID)) { string sOperationType = sPageID.Substring(4, 1); if (Constants.OPERATION_TYPE_APPROVAL.Equals(sOperationType)) { Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; LoadDataByID(Util.GetIntNumber(ScrID)); // general Control Util.ControlEnabled(txtScreenID, false); Util.ControlEnabled(txtScreenName, false); Util.ControlEnabled(txtDescription, false); Util.ControlEnabled(txtObjectCaption, false); Util.ControlEnabled(txtObjectName, false); Util.ControlEnabled(chkIsActive, false); // button Util.ControlEnabled(btnReject, true); Util.ControlEnabled(btnApprove, true); Util.ControlEnabled(btnBack, true); Util.ControlEnabled(btnReset, false); Util.ControlEnabled(btnSave, false); Util.ControlEnabled(btnDelete, false); Util.ControlEnabled(btnLoad, false); gvScreen.Enabled = false; #region User-Detail. Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), true); UserDetails oUserDetails = ucUserDet.UserDetail; oUserDetails.CheckerID = oConfig.UserName; oUserDetails.CheckDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = false; } } else { // general Control Util.ControlEnabled(txtScreenID, true); Util.ControlEnabled(txtScreenName, true); Util.ControlEnabled(txtDescription, true); // button Util.ControlEnabled(btnReject, false); Util.ControlEnabled(btnApprove, false); Util.ControlEnabled(btnBack, false); Util.ControlEnabled(btnReset, true); Util.ControlEnabled(btnSave, true); Util.ControlEnabled(btnDelete, true); Util.ControlEnabled(btnLoad, true); #region User-Detail. Util.ControlEnabled(ucUserDet.FindControl("txtCheckerComments"), false); UserDetails oUserDetails = new UserDetails(); oUserDetails.MakeDate = DateTime.Now; ucUserDet.UserDetail = oUserDetails; #endregion User-Detail. fsList.Visible = true; } LoadList(); }