派纳发送邮件功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

306 lines
8.3 KiB

11 months ago
  1. using System;
  2. using System.Text;
  3. using System.Collections;
  4. using System.Xml;
  5. using System.Data;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Resources;
  10. using System.Reflection;
  11. using System.Globalization;
  12. using System.Threading;
  13. using Telerik.WebControls;
  14. using UFSoft.UBF.UI.WebControls;
  15. using UFSoft.UBF.UI.Controls;
  16. using UFSoft.UBF.Util.Log;
  17. using UFSoft.UBF.Util.Globalization;
  18. using UFSoft.UBF.UI.IView;
  19. using UFSoft.UBF.UI.Engine;
  20. using UFSoft.UBF.UI.MD.Runtime;
  21. using UFSoft.UBF.UI.ActionProcess;
  22. using UFSoft.UBF.Business;
  23. using UFSoft.UBF.UI.ControlModel;
  24. using UFSoft.UBF.UI.Engine.Builder;
  25. using UFSoft.UBF.UI;
  26. using System.Collections.Generic;
  27. /***********************************************************************************************
  28. * Form ID:
  29. * UIFactory Auto Generator
  30. ***********************************************************************************************/
  31. namespace CustPrintReferenceRef
  32. {
  33. public partial class CustPrintReferenceRefWebPart
  34. {
  35. #region eventBind
  36. //MethodName:FindButton_Click ActionName:
  37. /// <summary>
  38. /// Help Info : {varEvent.Help}
  39. /// </summary>
  40. public void FindButton_Click(object sender, EventArgs e)
  41. {
  42. OnDataCollect(this); //当前事件先执行数据收集
  43. UFIDA.U9.UI.Commands.CommandHelper.SaveRefFindScheme(this);
  44. this.IsDataBinding = true ; //当前事件执行后会进行数据绑定
  45. this.IsConsuming = false;
  46. this.InvokeMethod(sender,e,FindButton_Click_Extend) ;
  47. }
  48. //default implement by tpl ...
  49. private void FindButton_Click_DefaultImpl(object sender, EventArgs e)
  50. {
  51. //Template (tpl) Code here...
  52. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:FindClick
  53. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("ReferenceFind",this.Action,sender,e);
  54. }
  55. //MethodName:QryButton_Click ActionName:
  56. /// <summary>
  57. /// Help Info : {varEvent.Help}
  58. /// </summary>
  59. public void QryButton_Click(object sender, EventArgs e)
  60. {
  61. this.IsDataBinding = false ;
  62. this.IsConsuming = false;
  63. this.InvokeMethod(sender,e,QryButton_Click_DefaultImpl) ;
  64. }
  65. //default implement by tpl ...
  66. private void QryButton_Click_DefaultImpl(object sender, EventArgs e)
  67. {
  68. //Template (tpl) Code here...
  69. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:RefQryClick
  70. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("QryClick",this.Action,sender,e);
  71. }
  72. //MethodName:DDLCase_TextChanged ActionName:
  73. /// <summary>
  74. /// Help Info : {varEvent.Help}
  75. /// </summary>
  76. public void DDLCase_TextChanged(object sender, EventArgs e)
  77. {
  78. this.IsDataBinding = true ; //当前事件执行后会进行数据绑定
  79. this.IsConsuming = false;
  80. this.InvokeMethod(sender,e,DDLCase_TextChanged_DefaultImpl) ;
  81. }
  82. //default implement by tpl ...
  83. private void DDLCase_TextChanged_DefaultImpl(object sender, EventArgs e)
  84. {
  85. //Template (tpl) Code here...
  86. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:RefCaseChange
  87. UFIDA.UBF.Query.CommonService.RefQueryHelper.OnCaseChanged_Qry_DefaultImpl(this.Action);
  88. UFIDA.U9.UI.Commands.CommandHelper.InitReferenceDropDownList(this);
  89. }
  90. //MethodName:ConfirmButton_Click ActionName:
  91. /// <summary>
  92. /// Help Info : {varEvent.Help}
  93. /// </summary>
  94. public void ConfirmButton_Click(object sender, EventArgs e)
  95. {
  96. OnDataCollect(this); //当前事件先执行数据收集
  97. this.IsDataBinding = true ; //当前事件执行后会进行数据绑定
  98. this.IsConsuming = false;
  99. this.InvokeMethod(sender,e,ConfirmButton_Click_Extend) ;
  100. }
  101. //default implement by tpl ...
  102. private void ConfirmButton_Click_DefaultImpl(object sender, EventArgs e)
  103. {
  104. //Template (tpl) Code here...
  105. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:ConfirmClick
  106. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("ReferenceConfirmClick",this.Action,sender,e);
  107. }
  108. //MethodName:CancelButton_Click ActionName:
  109. /// <summary>
  110. /// Help Info : {varEvent.Help}
  111. /// </summary>
  112. public void CancelButton_Click(object sender, EventArgs e)
  113. {
  114. OnDataCollect(this); //当前事件先执行数据收集
  115. this.IsDataBinding = true ; //当前事件执行后会进行数据绑定
  116. this.IsConsuming = false;
  117. this.InvokeMethod(sender,e,CancelButton_Click_Extend) ;
  118. }
  119. //default implement by tpl ...
  120. private void CancelButton_Click_DefaultImpl(object sender, EventArgs e)
  121. {
  122. //Template (tpl) Code here...
  123. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:CancelClick
  124. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("RefCancelClick",this.Action,sender,e);
  125. }
  126. //MethodName:DataGrid_GridRowDbClicked ActionName:
  127. /// <summary>
  128. /// Help Info : {varEvent.Help}
  129. /// </summary>
  130. public void DataGrid_GridRowDbClicked(object sender, GridDBClickEventArgs e)
  131. {
  132. OnDataCollect(this); //当前事件先执行数据收集
  133. this.IsDataBinding = true ; //当前事件执行后会进行数据绑定
  134. this.IsConsuming = false;
  135. try
  136. {
  137. DataGrid_GridRowDbClicked_Extend(sender,e) ;
  138. }
  139. catch(Exception ex)
  140. {
  141. if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) {
  142. throw;
  143. }
  144. IUIModel model = this.Model;
  145. this.Model.ErrorMessage.SetErrorMessage(ref model,ex);
  146. }
  147. }
  148. //default implement by tpl ...
  149. private void DataGrid_GridRowDbClicked_DefaultImpl(object sender, GridDBClickEventArgs e)
  150. {
  151. //Template (tpl) Code here...
  152. //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:GridDoubleClick
  153. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("ReferenceGridRowDbClicked",this.Action,sender,e);
  154. }
  155. #region 数据初始化加载和数据收集方法
  156. public void OnLoadData(object sender)
  157. {
  158. try
  159. {
  160. UFIDA.U9.UI.Commands.CommandHelper.LoadRefFindScheme(this);
  161. OnLoadData_Extend(sender) ;
  162. }
  163. catch(Exception ex)
  164. {
  165. if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) {
  166. throw;
  167. }
  168. IUIModel model = this.Model;
  169. this.Model.ErrorMessage.SetErrorMessage(ref model,ex);
  170. }
  171. }
  172. public void OnLoadData_DefaultImpl(object sender)
  173. {
  174. Action.OnLoadData(sender, new UIActionEventArgs());
  175. }
  176. public override void OnDataCollect(object sender)
  177. {
  178. try
  179. {
  180. adjust.ProcessAdjustBeforeDataCollect(this);
  181. OnDataCollect_Extend(sender);
  182. adjust.ProcessAdjustAfterDataCollect(this);
  183. }
  184. catch(Exception ex)
  185. {
  186. if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) {
  187. throw;
  188. }
  189. IUIModel model = this.Model;
  190. this.Model.ErrorMessage.SetErrorMessage(ref model,ex);
  191. }
  192. }
  193. private void OnDataCollect_DefaultImpl(object sender)
  194. {
  195. Action.OnDataCollect(sender,new UIActionEventArgs());
  196. }
  197. #endregion
  198. #region Grid控件DataGrid的分页事件
  199. void UFGridDataGrid_GridMakePageEventHandler(Object sender, GridMakePageEventArgs e)
  200. {
  201. //Grid的首页、下页、上页、末页处理逻辑
  202. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("GridMakePage",this.Action,this.DataGrid,e);
  203. }
  204. #endregion
  205. #region Grid控件DataGrid的客户化筛选事件
  206. void UFGridDataGrid_GridCustomFilterHandler(Object sender, GridCustomFilterArgs e)
  207. {
  208. //Grid的客户化筛选,首条、上一条、下一条、末条处理逻辑
  209. UFIDA.U9.UI.Commands.CommandFactory.DoCommand("GridCustomFilter",this.Action,this.DataGrid,e);
  210. }
  211. #endregion
  212. #endregion
  213. }
  214. }