/// <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; }
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"); }
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); }