示例#1
0
        /// <summary>
        /// 查询客户
        /// </summary>
        public void QueryProductionPlan(string limit, string offset, string whereStr)
        {
            int       totalCount = 0;
            DataTable dt         = new ExtractInventoryTool_ProductionPlanBLL().QueryProductionPlan(limit, offset, whereStr, out totalCount);
            QueryProductionPlanCallbackDel del = QueryProductionPlanCallback;

            dataGridView1.BeginInvoke(del, dt, totalCount);
            return;
        }
示例#2
0
        public void DeletePlanRecords(string tableName, List <string> ids)
        {
            string errorMessage          = string.Empty;
            int    result                = new ExtractInventoryTool_ProductionPlanBLL().DeleteRecords(tableName, ids, out errorMessage);
            DeleteRecordsCallbackDel del = DeleteRecordsCallback;

            dataGridView1.BeginInvoke(del, errorMessage);
            //MessageBox.Show("删除成功", "Info");
        }
示例#3
0
        public void SaveProductionPlanExcel(List <ExtractInventoryTool_ProductionPlan> excelData, bool isCover)
        {
            string errorMessage = string.Empty;
            bool   importResult = false;

            importResult = new ExtractInventoryTool_ProductionPlanBLL().ImportProductionPlan(_excelData, isCover, out errorMessage);
            SaveProductPlanExcelCallbackDel del = SaveProductionPlanExcelCallback;

            this.BeginInvoke(del, importResult, errorMessage);
        }