SVN r447
SVN-Revision: r447
This commit is contained in:
@@ -2586,6 +2586,25 @@ namespace Lskj.PubBill
|
||||
if (!string.IsNullOrWhiteSpace(e.MemuModel.ResultSQL))
|
||||
{
|
||||
string resultSql = e.MemuModel.ResultSQL;
|
||||
if (e.DialogModel != null && e.DialogModel.DialogDllName.Equals("Lskj.PubBomImport.dll", StringComparison.OrdinalIgnoreCase)&& e.DialogModel.ReturnTag.ToString()=="3")
|
||||
{
|
||||
DataRow dataRow = this.gcMain.GridView.GetFocusedDataRow();
|
||||
string[] strArrlist = resultSql.Split('^');
|
||||
if (strArrlist.Count() != 3) return;
|
||||
string selectSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[0]);
|
||||
string isUpadSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[1]);
|
||||
DataRow fileRow = BaseImpl.GetDataRowResult(selectSql);
|
||||
string Billdocument_Id = fileRow != null ? fileRow["Billdocument_Id"] + "" : string.Empty;
|
||||
dataRow["qms_laddf_RelatedId"] = Billdocument_Id;
|
||||
if (fileRow!=null && BaseImpl.GetDataRowResult(isUpadSql) != null)
|
||||
{
|
||||
string upadSql = ReplaceHelper.ReplaceRowParam(fileRow, strArrlist[2]);
|
||||
upadSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[2]);
|
||||
SqlHelper.ExecuteNonQuery(upadSql);
|
||||
}
|
||||
this.gcMain.GridView.UpdateCurrentRow();
|
||||
this.gcMain.GridView.ShowEditor();
|
||||
}else
|
||||
if (e.DialogModel != null && e.DialogModel.DialogDllName.Equals("lskj.pubadd.dll", StringComparison.OrdinalIgnoreCase) && e.DialogModel.PubDialogType == DialogType.PubAddRecord)
|
||||
{
|
||||
if (e.DialogModel.ReturnTag != null && e.DialogModel.ReturnTag is MyControl)
|
||||
@@ -2599,7 +2618,7 @@ namespace Lskj.PubBill
|
||||
{
|
||||
this.AddRowToGridView(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
resultSql = this.ControlObj.ReplaceControlValue(resultSql);
|
||||
|
||||
Reference in New Issue
Block a user