SVN r526
SVN-Revision: r526
This commit is contained in:
@@ -368,6 +368,10 @@ namespace Lskj.Control
|
|||||||
/// 聚合多表头控件
|
/// 聚合多表头控件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public BandedGridControlEx CustomGroupBandEx;
|
public BandedGridControlEx CustomGroupBandEx;
|
||||||
|
/// <summary>
|
||||||
|
/// 导出名不包含日期
|
||||||
|
/// </summary>
|
||||||
|
public bool ExportNameWithoutDate = false;
|
||||||
|
|
||||||
public GridControlEx()
|
public GridControlEx()
|
||||||
{
|
{
|
||||||
@@ -3932,7 +3936,7 @@ namespace Lskj.Control
|
|||||||
mutilLookUp.TextField = model.TextMember;
|
mutilLookUp.TextField = model.TextMember;
|
||||||
mutilLookUp.SourceSQL = model.SqlSource;
|
mutilLookUp.SourceSQL = model.SqlSource;
|
||||||
mutilLookUp.IsType = model.FieldType;
|
mutilLookUp.IsType = model.FieldType;
|
||||||
mutilLookUp.ValueMember = (model.FieldType == ControlType.LabMultiSelectValue|| model.FieldType == ControlType.LabMultiSelectValueNew) ||
|
mutilLookUp.ValueMember = (model.FieldType == ControlType.LabMultiSelectValue || model.FieldType == ControlType.LabMultiSelectValueNew) ||
|
||||||
model.FieldType == ControlType.LabMultiSelectValueParam ? model.ValueMember : model.TextMember;
|
model.FieldType == ControlType.LabMultiSelectValueParam ? model.ValueMember : model.TextMember;
|
||||||
mutilLookUp.Tag = model;
|
mutilLookUp.Tag = model;
|
||||||
|
|
||||||
@@ -8261,4 +8265,36 @@ namespace Lskj.Control
|
|||||||
{
|
{
|
||||||
int returnIndex = 0;
|
int returnIndex = 0;
|
||||||
isContain = false;
|
isContain = false;
|
||||||
DataRow dragEn
|
DataRow dragEndRow = sourceTab.Rows[dragEndRowIndex];
|
||||||
|
if (selectRows.Contains(dragEndRow))
|
||||||
|
{
|
||||||
|
isContain = true;
|
||||||
|
dragEndRowIndex = dragEndRowIndex - 1;
|
||||||
|
if (dragEndRowIndex >= 0)
|
||||||
|
{
|
||||||
|
dragEndRow = sourceTab.Rows[dragEndRowIndex];
|
||||||
|
if (selectRows.Contains(dragEndRow))
|
||||||
|
{
|
||||||
|
bool iscontain = false;
|
||||||
|
returnIndex = GetDragEndRowIndex(sourceTab, dragEndRowIndex, selectRows, out iscontain);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
returnIndex = dragEndRowIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
returnIndex = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
returnIndex = dragEndRowIndex;
|
||||||
|
}
|
||||||
|
return returnIndex;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -559,6 +559,7 @@ namespace Lskj.Control
|
|||||||
this.gcMain.ExportPermission = false;
|
this.gcMain.ExportPermission = false;
|
||||||
if (this.SysModel.ExportEnable && this.ValidateCond(this.SysModel.ExportCond, dr, "P_SystemDllTab", "exportCond") && this.SysModel.ExportPermission)
|
if (this.SysModel.ExportEnable && this.ValidateCond(this.SysModel.ExportCond, dr, "P_SystemDllTab", "exportCond") && this.SysModel.ExportPermission)
|
||||||
{
|
{
|
||||||
|
bbi_export.Tag = SysModel;
|
||||||
pm_oper.AddItem(bbi_export);
|
pm_oper.AddItem(bbi_export);
|
||||||
this.gcMain.ExportPermission = true; //this.SysModel.ExportPermission;
|
this.gcMain.ExportPermission = true; //this.SysModel.ExportPermission;
|
||||||
}
|
}
|
||||||
@@ -3076,7 +3077,7 @@ namespace Lskj.Control
|
|||||||
|
|
||||||
List<string> ImportReturnName = this.SearchObj.getImportReturnValueControl();
|
List<string> ImportReturnName = this.SearchObj.getImportReturnValueControl();
|
||||||
List<string> ImportReturnValue = new List<string>();
|
List<string> ImportReturnValue = new List<string>();
|
||||||
if (ImportReturnName.Count>0)
|
if (ImportReturnName.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (string item in ImportReturnName)
|
foreach (string item in ImportReturnName)
|
||||||
{
|
{
|
||||||
@@ -3198,6 +3199,7 @@ namespace Lskj.Control
|
|||||||
private void ExportGridRecord()
|
private void ExportGridRecord()
|
||||||
{
|
{
|
||||||
LogUtil.WriteDebug(this.Model.ModuleCode, "导出数据", this.SysModel.MenuText, "导出数据");
|
LogUtil.WriteDebug(this.Model.ModuleCode, "导出数据", this.SysModel.MenuText, "导出数据");
|
||||||
|
this.gcMain.ExportNameWithoutDate = SysModel.ExportNameWithoutDate;
|
||||||
if (this.gcMain is TreeGridControlEx)
|
if (this.gcMain is TreeGridControlEx)
|
||||||
{
|
{
|
||||||
TreeGridControlEx treeControlEx = this.gcMain as TreeGridControlEx;
|
TreeGridControlEx treeControlEx = this.gcMain as TreeGridControlEx;
|
||||||
@@ -5226,4 +5228,4 @@ namespace Lskj.Control
|
|||||||
|
|
||||||
public void SelectTheSpecifiedRow()
|
public void SelectTheSpecifiedRow()
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(this.TagName) &&ParentGridEx!=null&&ParentGridEx.GridView.OptionsSelection.MultiSelect == true&& GridControlObj.GridView.OptionsSelection.MultiSelect == true&& this.ParentControlEx.
|
if (!string.IsNullOrWhiteSpace(this.TagName) && ParentGridEx != null && ParentGridEx.GridView.OptionsSelection.MultiSelect == true && GridControlObj.GridView.OptionsSelection.MultiSelect == true && this.P
|
||||||
Reference in New Issue
Block a user