| | |
| | | } |
| | | private void ToolBarMenu1_btnReportClick(object sender, EventArgs e) |
| | | { |
| | | //toolBarMenu1.guidKey = ""; |
| | | //string rowGuid, rowName; |
| | | //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | // lbGuid, txt_itemName, gridView1); |
| | | //toolBarMenu1.guidKey = rowGuid; |
| | | //if (xtraTabControl1.SelectedTabPageIndex == 0) |
| | | //{ |
| | | // getModel(rowGuid, false, 999); |
| | | // this.toolBarMenu1.rptParameter = "return false"; |
| | | // return; |
| | | //} |
| | | //if (string.IsNullOrEmpty(txt_suppNo_1.GetCode())) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择供应商!"); |
| | | // txt_suppNo_1.Focus(); |
| | | // this.toolBarMenu1.rptParameter = "return false"; |
| | | // return; |
| | | //} |
| | | //if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); |
| | | // txt_iCount_1.Focus(); |
| | | // this.toolBarMenu1.rptParameter = "return false"; |
| | | // return; |
| | | //} |
| | | //if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); |
| | | // txt_psnQty_1.Focus(); |
| | | // this.toolBarMenu1.rptParameter = "return false"; |
| | | // return; |
| | | //} |
| | | //this.toolBarMenu1.rptParameter = "rpt_ItemInv{" + txt_createDate1.Text.Trim() |
| | | // + "," + txt_tc_1.Checked.ToString().ToUpper() |
| | | // + "," + txt_suppNo_1.GetId() |
| | | // + "," + txt_iCount_1.Text.Trim() |
| | | // + "," + txt_psnQty_1.Text.Trim() |
| | | // + "}"; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_qtck, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | if (xtraTabControl1.SelectedTabPageIndex == 0) |
| | | { |
| | | getModel(rowGuid); |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); |
| | | txt_iCount_1.Focus(); |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); |
| | | txt_psnQty_1.Focus(); |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | this.toolBarMenu1.rptParameter = "rpt_Qtrk{" + lbMxGuid.Text.Trim() |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + txt_iCount_1.Text.Trim() |
| | | + "," + txt_psnQty_1.Text.Trim() |
| | | + "}"; |
| | | |
| | | |
| | | //this.toolBarMenu1.rptParameter = "rpt_Arrival{" + "" |
| | | // + "," + "" |
| | | // + "," + "" |
| | | // + "," + txt_iCount_1.Text.Trim() |
| | | // + "," + txt_psnQty_1.Text.Trim() |
| | | // + "}"; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |