private void bwSalOutK3Cloud_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            SAL_OUTSTOCK_DAL s = new SAL_OUTSTOCK_DAL(strUrl, strDbId, strUser, strPassword, constr);

            if (s.loginResult == true)
            {
                if (s.isExists() == true)
                {
                    s.BatchSave();
                }
            }
            else
            {
                LogHelper.WriteFileLog(typeof(FrmMain), "K3Cloud登录失败!");
            }
        }
        private void bwMaterialErrorList_DoWork(object sender, DoWorkEventArgs e)
        {
            Object    type = e.Argument as Object;
            ErrorInfo ei   = new ErrorInfo();

            switch (type.ToString())
            {
            case "Item":
                SAL_OUTSTOCK_DAL sod = new SAL_OUTSTOCK_DAL(strUrl, strDbId, strUser, strPassword, constr);
                ei.type       = "Item";
                ei.ObjectList = sod.GetNotExistK3CloudMaterial();
                break;

            case "Stock":
                SAL_OUTSTOCK_DAL sod1 = new SAL_OUTSTOCK_DAL(strUrl, strDbId, strUser, strPassword, constr);
                ei.type       = "Stock";
                ei.ObjectList = sod1.GetNotExistsK3CloudStockMaterial();
                break;
            }
            e.Result = ei;
        }