Пример #1
0
        /// <summary>
        /// Inits the district type combo box.
        /// </summary>
        private void InitDistrictTypeComboBox()
        {
            this.districtMgmtDataSet             = this.form1505Control.WorkItem.F15002_GetDistrictType(TerraScanCommon.UserId);
            this.DistrictTypeCOmbo.DataSource    = this.districtMgmtDataSet.F15002_ListDistrictType;
            this.DistrictTypeCOmbo.ValueMember   = this.districtMgmtDataSet.F15002_ListDistrictType.DistrictTypeIDColumn.ColumnName;
            this.DistrictTypeCOmbo.DisplayMember = this.districtMgmtDataSet.F15002_ListDistrictType.DistrictTypeColumn.ColumnName;
            byte ratenable;

            if (districtMgmtDataSet.DistrictVisibility.Rows.Count > 0)
            {
                F15002DistMgmtData.DistrictVisibilityRow districtType = (F15002DistMgmtData.DistrictVisibilityRow) this.districtMgmtDataSet.DistrictVisibility.Rows[0];

                if (!districtType.IsIsExciseRateEnabledNull())
                {
                    byte.TryParse(districtType.IsExciseRateEnabled.ToString(), out ratenable);
                    if (ratenable > 0)
                    {
                        this.isDistrictPanelEnable = true;
                    }
                    else
                    {
                        this.isDistrictPanelEnable = false;
                    }
                }
                else
                {
                    this.isDistrictPanelEnable = true;
                }
            }
        }
Пример #2
0
        /// <summary>
        /// F15002_s the get distirct fund details.
        /// </summary>
        /// <param name="districtId">The district id.</param>
        /// <returns>DataSet Contains the District Fund Deatails</returns>
        public static F15002DistMgmtData F15002_GetDistirctFundDetails(int?districtId)
        {
            F15002DistMgmtData districtMgmtData = new F15002DistMgmtData();
            Hashtable          ht = new Hashtable();

            ht.Add("@DistrictID", districtId);
            string[] tableName = new string[] { districtMgmtData.DistrictHeader.TableName, districtMgmtData.ListDistrictFunds.TableName, districtMgmtData.ListAllFunds.TableName };
            Utility.LoadDataSet(districtMgmtData, "f15002_pcget_DistrictFund", ht, tableName);
            return(districtMgmtData);
        }
Пример #3
0
        /// <summary>
        /// F15002_s the type of the get district.
        /// </summary>
        /// <param name="userId">The user id.</param>
        /// <returns></returns>
        public static F15002DistMgmtData F15002_GetDistrictType(int userId)
        {
            F15002DistMgmtData getDistrictType = new F15002DistMgmtData();
            Hashtable          ht = new Hashtable();

            ht.Add("@UserID", userId);
            string[] tableName = new string[] { getDistrictType.F15002_ListDistrictType.TableName, getDistrictType.DistrictVisibility.TableName };
            Utility.LoadDataSet(getDistrictType, "f15002_pclst_DistrictType", ht, tableName);
            return(getDistrictType);
        }
Пример #4
0
        /// <summary>
        /// F15002_s the list all funds.
        /// </summary>
        /// <param name="fundId">The fund id.</param>
        /// <param name="fund">The fund.</param>
        /// <param name="rollYear">The roll year.</param>
        /// <returns>DataSet Contains the All Funds Deatails</returns>
        public static F15002DistMgmtData F15002_ListAllFunds(int?fundId, string fund, int?rollYear)
        {
            F15002DistMgmtData districtMgmtData = new F15002DistMgmtData();
            Hashtable          ht = new Hashtable();

            ht.Add("@SubFundID", fundId);
            ht.Add("@SubFund", fund);
            ht.Add("@RollYear", rollYear);
            if (!string.IsNullOrEmpty(fund))
            {
                ////Utility.FillDataSet(districtMgmtData.ListAllFunds, "f15003_pcget_FundDescription", ht);
                //// After Bill Change Request (Fund Changed to Subfund)
                Utility.LoadDataSet(districtMgmtData.ListAllFunds, "f15005_pclst_SubFund", ht);
            }
            else
            {
                Utility.LoadDataSet(districtMgmtData.ListAllFunds, "f15005_pclst_SubFund", ht);
            }

            return(districtMgmtData);
        }