| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut, txt_yuliang_1); |
| | | }; |
| | | |
| | | #region 2025-08-27 复制beg |
| | | btnCopyXls.Click += (s, e) => |
| | | { |
| | |
| | | string filePath = AppContext.BaseDirectory + "xlsCopy.xls"; |
| | | if (File.Exists(filePath)) |
| | | { |
| | | var frm = new CopyXls(kcZz, lbGuid.Text.Trim(), OrderType.其它入库.ToString()); |
| | | var frm = new CopyXls(kcZz, lbGuid.Text.Trim(), OrderType.其它入库.ToString(), txt_qt022.GetId()); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | try |
| | | { |
| | | var lst = ee.DynamicList; |
| | | MessageBox.Show(lst.Count.ToString()); |
| | | //DataTable _Table = (DataTable)gcMx1.DataSource; |
| | | //foreach (dynamic dym in lst) |
| | | //{ |
| | | // DataRow _row = _Table.NewRow(); |
| | | // _row["fSeq"] = dym.fSeq; |
| | | // _row["statStatus"] = "Y-是"; |
| | | // _row["collectionName"] = "空"; |
| | | // _row["processNo"] = dym.processNo; |
| | | // _row["processName"] = dym.processName; |
| | | // _Table.Rows.Add(_row); |
| | | //} |
| | | //gcMx1.BindingContext = new BindingContext(); |
| | | //gcMx1.DataSource = _Table; |
| | | //gcMx1.ForceInitialize(); |
| | | //gvMx1.CloseEditor(); |
| | | //gvMx1.PostEditor(); |
| | | //gvMx1.UpdateCurrentRow(); |
| | | //gvMx1.BestFitColumns(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError(ex.Message); |
| | | } |
| | | }; |
| | | frm.ShowDialog(); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("找不到xlsCopy.xls文件,请联系管理员!"); |
| | | } |
| | | |
| | | }; |
| | | #endregion |
| | | } |
| | |
| | | string inHz = ucLookHuoZhu1.GetHzId();//货主 |
| | | string inRkyy = txt_qt010.Text.Trim();//入库原因 |
| | | string kcCk = txt_qt008.GetId();//仓库 |
| | | string qtlx = txt_qtlx.Text.Trim();//后来增加的类型 |
| | | if (string.IsNullOrEmpty(kcZz)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择库存组织!"); |
| | |
| | | txt_qt003.Focus(); |
| | | return; |
| | | } |
| | | if (txt_qt019.SelectedIndex <= 0) |
| | | if (txt_qtlx.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择库存方向!"); |
| | | txt_qt019.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择入库类型!"); |
| | | txt_qtlx.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(kcBm) && string.IsNullOrEmpty(kcGys)) |
| | |
| | | hzlx = inHzlx,//货主类型 |
| | | inHz = inHz,//货主 |
| | | inSource = txt_qt035.EditValue,//工单号 |
| | | qtlx = qtlx, |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |