From 2a2e3fbbef29bbc568b10f2bd45bd6e658443d6e Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期五, 19 三月 2021 14:42:43 +0800
Subject: [PATCH] 问题处理

---
 src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs |   49 +++++++------------------------------------------
 1 files changed, 7 insertions(+), 42 deletions(-)

diff --git a/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs b/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
index 07e1916..0daf256 100644
--- a/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
+++ b/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
@@ -12,73 +12,37 @@
 using System.ComponentModel;
 using System.Data;
 using Newtonsoft.Json.Linq;
-using ZD.Cloud.WebApi;
 using ZD.Cloud.Logger;
 using Demo.Model.Model;
 using ZD.Share.Common;
 using System.Linq;
+using Demo.Utility;
 
 namespace Demo.BillView.PRD
 {
-
     [Description("鐢熶骇鏃ヨ鍒掑鍏�")]
     [HotUpdate]
     public class Pro_ScDayImport : AbstractDynamicFormPlugIn
     {
-
-        CloudClient cloudClient = new CloudClient("http://localhost/K3Cloud/");
         private string fileFullPath = string.Empty;
-        //public override void BarItemClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.BarItemClickEventArgs e)
+    
+        //public override void OnLoad(EventArgs e)
         //{
-        //    base.BarItemClick(e);
-        //    if (e.BarItemKey.ToUpper().Equals("TBIMPORT"))
-        //    {
-        //    }
-
-        //    if (e.BarItemKey.ToUpper().Equals("TBWJSC"))
-        //    {
-        //        //Control updateControl = this.View.GetControl("fileFullPath");
-        //        //// 涓婁紶鍦板潃
-        //        //string uploadUrl = "FileUpLoadServices/FileService.svc/upload2attachment/";
-        //        //updateControl.SetCustomPropertyValue("ExtandUrl", uploadUrl);
-        //        //// 涓嬭浇鍦板潃
-        //        //string downloadUrl = "FileUpLoadServices/download.aspx";
-        //        //updateControl.SetCustomPropertyValue("ExDownLoadUrl", downloadUrl);
-
-        //        ImportData(fileFullPath);
-        //    }
-
+        //    base.OnLoad(e);
+        //    throw new Exception("1");
         //}
-        public override void OnLoad(EventArgs e)
-        {
-            base.OnLoad(e);
-            throw new Exception("1");
-        }
-
-
         public override void BarItemClick(BarItemClickEventArgs e)
         {
-            base.BarItemClick(e);
-            throw new Exception("1");
-
             LogHelper.Info("瀵煎叆鍔熻兘鐐瑰嚮鎸夐挳锛�");
             if (e.BarItemKey.ToUpper().Equals("TBIMPORT"))
             {
-                this.View.ShowErrMessage("娴嬭瘯瀵煎叆鍔熻兘鐐瑰嚮鎸夐挳");
                 LogHelper.Info("瀵煎叆鍔熻兘鐐瑰嚮鎸夐挳锛�");
                 ImportData();
+                //this.View.ShowErrMessage("娴嬭瘯瀵煎叆鍔熻兘鐐瑰嚮鎸夐挳");
             }
 
             if (e.BarItemKey.ToUpper().Equals("TBWJSC"))
             {
-                this.View.ShowErrMessage("娴嬭瘯鏂囦欢涓婁紶鍔熻兘鐐瑰嚮鎸夐挳");
-                //Control updateControl = this.View.GetControl("fileFullPath");
-                //// 涓婁紶鍦板潃
-                //string uploadUrl = "FileUpLoadServices/FileService.svc/upload2attachment/";
-                //updateControl.SetCustomPropertyValue("ExtandUrl", uploadUrl);
-                //// 涓嬭浇鍦板潃
-                //string downloadUrl = "FileUpLoadServices/download.aspx";
-                //updateControl.SetCustomPropertyValue("ExDownLoadUrl", downloadUrl);
                 LogHelper.Info("鏂囦欢涓婁紶鍔熻兘鐐瑰嚮鎸夐挳锛�");
                 ImportDataSC(fileFullPath);
             }
@@ -260,6 +224,7 @@
         {
             try
             {
+                CloudClient cloudClient = new CloudClient("http://localhost//k3cloud/");
                 string sql;
                 DateTime date = Convert.ToDateTime(this.Model.GetValue("F_Paez_Date"));
                 //鑾峰彇鍗曟嵁浣撲俊鎭�

--
Gitblit v1.9.1