提交当前本机整理版本
This commit is contained in:
@@ -49,4 +49,34 @@ namespace Lskj.PubBill
|
||||
this.SysModel = new ModuleModel(modelRow);
|
||||
DataTable mainGridColumns = BaseModuleImpl.GetBaseGridColumns(this.SysModel.ModeCode);
|
||||
this.gcMain.SetReadOnlyColumns(mainGridColumns, GridCustomColumnStruct.BaseMainGridView + this.SysModel.FormKey);//创建列
|
||||
|
||||
string sql = ReplaceHelper.ReplaceParamToValue(SysModel.MenuSql, "{value}", this.ScanCodeData);
|
||||
DataTable dt = BillImpl.GetDataTableResult(sql);
|
||||
this.gcMain.GridControl.DataSource = dt;
|
||||
//加载复选框
|
||||
GridDragGrid.GridAddCheckBox(this.gcMain.GridView);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void simpleButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataRow[] dataRows = this.gcMain.GetViewFocusedDataRows();
|
||||
if (dataRows.Length > 0)
|
||||
{
|
||||
string name=this.gcMain.GridView.Columns[0].FieldName;
|
||||
string text = string.Empty;
|
||||
for (int i = 0; i < dataRows.Length; i++)
|
||||
{
|
||||
text += dataRows[i][name] + ";";
|
||||
}
|
||||
|
||||
StringCodes = text.Trim(';');
|
||||
this.Close();
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user