提交当前本机整理版本
This commit is contained in:
@@ -772,4 +772,38 @@ namespace Lskj.PubBillSpecial
|
||||
/// <summary>
|
||||
/// 继续制单按钮点击
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void simpleButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.ReturnPrimaryValue = "";
|
||||
DataRow rowItem = this.gcMain.GetViewFocusedDataRow();
|
||||
if (rowItem != null && rowItem.Table.Columns.Contains(PrimaryKey))
|
||||
{
|
||||
this.ReturnPrimaryValue = rowItem[PrimaryKey] + "";
|
||||
this.Close();
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 执行存储过程并返回值
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
private void Menu_ReturnStoredProcedureValue(string text)
|
||||
{
|
||||
this.ReturnPrimaryValue = text;
|
||||
this.Close();
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user