| | |
| | | using DevExpress.XtraCharts.GLGraphics.Platform; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | toolBarMenu1.btnCaiWuChkClick += ToolBarMenu1_btnCaiWuChkClick; |
| | | toolBarMenu1.btnCaiWuFchkClick += ToolBarMenu1_btnCaiWuFchkClick; |
| | | toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; |
| | | toolBarMenu1.btnWjClick += ToolBarMenu1_btnWjClick; |
| | | this.toolBarMenu1.getXmlConfig(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "isChk", "", (value) => |
| | |
| | | }; |
| | | #endregion |
| | | |
| | | |
| | | #region 2025-08-27 增加委外供应商 |
| | | txt_qtlx.SelectedIndexChanged += (s, e) => |
| | | txt_qtlx.ChangedEvent += (s, e) => |
| | | { |
| | | int idx = txt_qtlx.SelectedIndex; |
| | | if (idx == 7) |
| | | if (idx == 6) |
| | | { |
| | | layItemWwgys.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | } |
| | |
| | | } |
| | | }; |
| | | #endregion |
| | | |
| | | |
| | | #region 2025-10-10 向下复制beg |
| | | btnDown.Click += (s, e) => |
| | | { |
| | | // 获取当前选中行的行号 |
| | | int focusedRowHandle = gvMx1.FocusedRowHandle; |
| | | if (focusedRowHandle < 0) return; |
| | | |
| | | // 获取当前行的时长 |
| | | DataRow currentRow = gvMx1.GetDataRow(focusedRowHandle); |
| | | if (currentRow == null) return; |
| | | var hourValue = currentRow["depotId"]; |
| | | var hourValue2 = currentRow["depotName"]; |
| | | if (hourValue == null || string.IsNullOrEmpty(hourValue.ToString())) |
| | | { |
| | | MsgHelper.ShowError("当前选中的行无仓库,复制失败!"); |
| | | return; |
| | | } |
| | | if (hourValue2 == null) |
| | | { |
| | | MsgHelper.ShowError("当前选中的行无仓库,复制失败!"); |
| | | return; |
| | | } |
| | | // 批量设置下面所有行的时长 |
| | | for (int i = focusedRowHandle + 1; i < gvMx1.DataRowCount; i++) |
| | | { |
| | | var row = gvMx1.GetDataRow(i); |
| | | if (row != null) |
| | | { |
| | | row["depotId"] = hourValue; |
| | | row["depotName"] = hourValue2; |
| | | } |
| | | } |
| | | gvMx1.RefreshData(); |
| | | }; |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 来源明细限制, |
| | |
| | | string inHzlx = ucLookHuoZhu1.GetHzLx();//货主类型 |
| | | string inHz = ucLookHuoZhu1.GetHzId();//货主 |
| | | string inRkyy = txt_qt010.Text.Trim();//原因 |
| | | string inDjlx = txt_qt019.Text.Trim();//单据类型 |
| | | string inDjlx = txt_qt019.TextTxt.Trim();//单据类型 |
| | | // string inLyOrg = txt_qt024.GetId();//领用组织 |
| | | string inLyOrg = inOrgId;//领用组织等于库存组织 |
| | | string inLyCus = txt_qt013.GetId();//领用客户 |
| | | string inLyDepart = txt_qt009.GetId();//领用部门 |
| | | string inKcfx = txt_qt020.Text.Trim();//库存方向 |
| | | string qtlx = txt_qtlx.Text.Trim();//后来增加的类型 |
| | | string qtlx = txt_qtlx.TextTxt.Trim();//后来增加的类型 |
| | | string wwgys = txt_wwgys.GetId(); |
| | | if (string.IsNullOrEmpty(inOrgId)) |
| | | { |
| | |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择货主!"); |
| | | return; |
| | | } |
| | | if (inDjlx.Length <= 0) |
| | | { |
| | | MsgHelper.ShowError("请选择退单据类型!"); |
| | | txt_qt019.Focus(); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(inLyOrg)) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择领用组织!"); |
| | | // txt_qt024.Focus(); |
| | | // return; |
| | | //} |
| | | if (txt_qtlx.SelectedIndex <= 0) |
| | | if (qtlx.Length <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择出库类型!"); |
| | | txt_qtlx.Focus(); |
| | | return; |
| | | } |
| | | //这是非委外的防呆 |
| | | if (txt_qtlx.SelectedIndex != 7) |
| | | if (txt_qtlx.SelectedIndex != 6) |
| | | { |
| | | if (string.IsNullOrEmpty(inLyCus) && string.IsNullOrEmpty(inLyDepart)) |
| | | { |
| | |
| | | } |
| | | } |
| | | //这是委外的防呆 |
| | | if (txt_qtlx.SelectedIndex == 7) |
| | | if (txt_qtlx.SelectedIndex == 6) |
| | | { |
| | | if (string.IsNullOrEmpty(wwgys)) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 完结 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnWjClick(object sender, EventArgs e) |
| | | { |
| | | _toolCk(2); |
| | | } |
| | | /// <summary> |
| | | /// 审核事件 |
| | | /// </summary> |
| | |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | case 2: |
| | | strMsg = "完结"; |
| | | break; |
| | | case 20: |
| | | strMsg = "售后审核"; |
| | | break; |
| | |
| | | int rowHandle = gridView1.LocateByValue("guid", rowGuid); |
| | | gridView1.FocusedRowHandle = rowHandle; |
| | | } |
| | | |
| | | } |
| | | else |
| | | MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); |