Example #1
0
        /// <summary>
        /// 设置是否自动编码
        /// </summary>
        private DataTable GetModuleCoding()
        {
            string    strsql = " num = '00006'";
            DataTable tbl    = ModuleCodingInfoManager.GetList(strsql);

            if (tbl.Rows.Count == 1)
            {
                return(tbl);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        /// <summary>
        /// 设置是否自动编码
        /// </summary>
        private DataTable GetModuleCoding()
        {
            string strsql = "";

            if (this.DropDownList1.SelectedValue == "1")
            {
                strsql = " num = '00004'";
            }
            else if (this.DropDownList1.SelectedValue == "2")
            {
                strsql = " num = '00005'";
            }
            DataTable tbl = ModuleCodingInfoManager.GetList(strsql);

            if (tbl.Rows.Count == 1)
            {
                return(tbl);
            }
            else
            {
                return(null);
            }
        }