コード例 #1
0
 public UCSAPCompanyConfirm(SAPCompanyVM vm, SAPCompanyInfo entity, int alertFlag)
     : this()
 {
     this.InputVM         = vm;
     this.ExistSAPCompany = entity;
     this.AlertFlag       = alertFlag;
 }
コード例 #2
0
        /// <summary>
        /// 创建SAP公司编码信息
        /// </summary>
        /// <param name="entity"></param>
        public virtual void CreateSAPCompany(SAPCompanyInfo entity)
        {
            DataCommand dc = DataCommandManager.GetDataCommand("CreateSAPCompany");

            dc.SetParameterValue("@WarehouseNumber", entity.StockID);
            dc.SetParameterValue("@WarehouseName", entity.StockName);
            dc.SetParameterValue("@SapCoCode", entity.SAPCompanyCode);
            dc.SetParameterValue("@SapBusinessArea", entity.SAPBusinessArea);
            dc.SetParameterValue("@SalesTaxRate", entity.SalesTaxRate);
            dc.SetParameterValue("@PurchaseTaxRate", entity.PurchaseTaxRate);
            dc.SetParameterValue("@CompanyCode", entity.CompanyCode);
            dc.SetParameterValue("@WorkStatus", entity.WorkStatus);

            dc.ExecuteNonQuery();
        }
コード例 #3
0
ファイル: SAPFacade.cs プロジェクト: sanlonezhang/ql
        public void PreCheckSAPCompany(SAPCompanyVM vm, Action <SAPCompanyResp> callback)
        {
            SAPCompanyInfo data = vm.ConvertVM <SAPCompanyVM, SAPCompanyInfo>();

            data.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/InvoiceService/SAP/PreCheckSAPCompany";

            restClient.Query <SAPCompanyResp>(relativeUrl, data, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback(args.Result);
            });
        }
コード例 #4
0
ファイル: SAPFacade.cs プロジェクト: sanlonezhang/ql
        public void CreateSAPCompany(SAPCompanyVM vm, int alertFlag, Action callback)
        {
            SAPCompanyInfo entity = vm.ConvertVM <SAPCompanyVM, SAPCompanyInfo>();

            entity.CompanyCode = CPApplication.Current.CompanyCode;
            SAPCompanyReq data = new SAPCompanyReq();

            data.SAPCompany = entity;
            data.AlertFlag  = alertFlag;
            string relativeUrl = "/InvoiceService/SAP/CreateSAPCompany";

            restClient.Create <SAPCompanyInfo>(relativeUrl, data, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback();
            });
        }