コード例 #1
0
        /// <summary>
        /// 重新计算
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAgain_Click_Extend(object sender, EventArgs e)
        {
            //调用模版提供的默认实现.--默认实现可能会调用相应的Action.
            ReturnUpDownAssessDTOData l = CurrentState["DTO"] as ReturnUpDownAssessDTOData;

            //调用模版提供的默认实现.--默认实现可能会调用相应的Action.
            if (!string.IsNullOrEmpty(l.SoLineID + ""))
            {
                //获取 佣金信息
                GetRateProxy proxy = new GetRateProxy();
                proxy.NewCurrency = l.Cureency;
                proxy.OldCurrency = 9;//美元
                List <ReturnUpDownAssessDTOData> ReturnAssessList = new List <ReturnUpDownAssessDTOData>();
                List <long>           ls           = new List <long>();
                Decimal               rate         = proxy.Do();
                CreateAssessTypeProxy CreateAssess = new CreateAssessTypeProxy();
                CreateAssess.Rate = rate;
                ls.Add(l.SoLineID);
                CreateAssess.SoLineID = ls;
                CreateAssess.Do();
            }
            else
            {
                throw new Exception("销售订单行信息不能为空,创建评估类型单失败!");
            }
            BtnAgain_Click_DefaultImpl(sender, e);
        }
コード例 #2
0
 /// <summary>
 /// 创建评估类型
 /// </summary>
 public static void CreateAssessType(long TCid, List <long> SoLine_ListKey)
 {
     if (TCid != 0)
     {
         GetRateProxy proxy = new GetRateProxy();
         proxy.NewCurrency = TCid;  //原币种
         proxy.OldCurrency = 9;     //美元 币种ID
         List <ReturnUpDownAssessDTOData> ReturnAssessList = new List <ReturnUpDownAssessDTOData>();
         Decimal rate = proxy.Do(); //调用转换汇率的BP
         CreateAssessTypeProxy CreateAssess = new CreateAssessTypeProxy();
         CreateAssess.Rate = rate;
         if (SoLine_ListKey != null && SoLine_ListKey.Count > 0)
         {
             CreateAssess.SoLineID = SoLine_ListKey;
             CreateAssess.Do();//调用创建评估类型BP
         }
     }
 }