Esempio n. 1
0
        /// <summary>
        /// 原材料品名下拉框(多选)
        /// 20150708 张
        /// </summary>
        /// <param name="cmb"></param>
        public static void BindmfNameCheckYCL(FZYK.WinCtrl.YKCheckListComboBox cmb)
        {
            string    sqlStr = "SELECT mfName FROM B_MaterialFileView WHERE mcTag = '原材料' GROUP BY mfName";
            DataTable dt     = new DataTable();

            dt = FZYK.Com.YKDataClass.getDataTable(sqlStr);
            cmb.BindData(dt, "mfName", "mfName");
        }
Esempio n. 2
0
        /// <summary>
        /// 绑定仓库多选下拉框
        /// </summary>
        /// <param name="cmb"></param>
        public static void BindWarehouseCheckYCL(FZYK.WinCtrl.YKCheckListComboBox cmb)
        {
            string    sqlStr = " SELECT * FROM B_Warehouse WHERE wType ='原材料' ORDER BY wSort ASC";
            DataTable dt     = new DataTable();

            dt = FZYK.Com.YKDataClass.getDataTable(sqlStr);
            cmb.BindData(dt, "wName", "wName");
        }