SVN-Revision: r955
This commit is contained in:
tdx
2025-08-21 02:27:36 +00:00
parent 9e7e8018e8
commit 0ba1a9d0c5
+3 -34
View File
@@ -320,7 +320,7 @@ namespace Lskj.PubSpec
//GridDragTree dragTree = new GridDragTree(this.gcMain.GridView, this.treeLeft.TreeView);
//dragTree.OnDragComplete += new GridDragTreeCompleteEventHandler(OnDragCompleted);
this.gcMain.IsSpecModel = true;
this.gcMain.SetEditColumns(this._gridColumns);
this.gcMain.SetEditColumns(this._gridColumns, GridCustomColumnStruct.PubSpecMainGridView + this.SysModel.FormKey);
this.gcMain.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(this.Model.ModuleCode));
this.gcMain.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(this.Model.ModuleCode), this.Model, OnGridViewRightCallBack, null);
this.gcMain.GridView.FocusedRowObjectChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler(OnGridViewFocusedRowObjectChanged);
@@ -493,7 +493,7 @@ namespace Lskj.PubSpec
{
sqlValue = string.IsNullOrWhiteSpace(parentValue)
? this.SysModel.MenuSql
: this.SysModel.MenuSql + string.Format(" and {0} like '{1}{2}' order by {0}","SpeciesNo", parentValue, maxdivision);
: this.SysModel.MenuSql + string.Format(" and {0} like '{1}{2}' order by {0}", "SpeciesNo", parentValue, maxdivision);
}
this.gcMain.SetGridViewDataSource(BaseImpl.GetDataTableResult(sqlValue));
@@ -1162,35 +1162,4 @@ namespace Lskj.PubSpec
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void OnExportClick(object sender, EventArgs e)
{
try
{
this.gcMain.GridControl.ToExcel(this.Model.FormText);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
try
{
WebBrowserUtil.StartWebBrowser(this.Model.ModuleCode, this.SysModel.MenuText);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
/// <para>版本:1.