/// <summary>
        /// 查询客户
        /// </summary>
        public void QueryInventory(string limit, string offset)
        {
            int       totalCount          = 0;
            DataTable dt                  = new ExtractInventoryTool_InventoryBLL().QueryInventory(limit, offset, out totalCount);
            QueryInventoryCallbackDel del = QueryInventoryCallback;

            dataGridView1.BeginInvoke(del, dt, totalCount);
            return;
        }
        public void DeleteInventoryRecords(string tableName, List <string> ids)
        {
            string errorMessage          = string.Empty;
            int    result                = new ExtractInventoryTool_InventoryBLL().DeleteRecords(tableName, ids, out errorMessage);
            DeleteRecordsCallbackDel del = DeleteRecordsCallback;

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

            importResult = new ExtractInventoryTool_InventoryBLL().ImportInventory(excelData, isCover, out errorMessage);
            SaveInventoryExcelCallbackDel del = SaveInventoryExcelCallback;

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