From 25849768b45e51a2f5ac0bd4df7bb98b24da9cd7 Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期一, 07 二月 2022 17:18:22 +0800
Subject: [PATCH] 工序管理
---
WarM/仓库管理/Gy_BarCodeBill_ChaiMa.cs | 71 +++++++++++++++++++++--------------
1 files changed, 43 insertions(+), 28 deletions(-)
diff --git "a/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Gy_BarCodeBill_ChaiMa.cs" "b/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Gy_BarCodeBill_ChaiMa.cs"
index 762a6a5..589aa62 100644
--- "a/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Gy_BarCodeBill_ChaiMa.cs"
+++ "b/WarM/\344\273\223\345\272\223\347\256\241\347\220\206/Gy_BarCodeBill_ChaiMa.cs"
@@ -8,7 +8,7 @@
using System.Text;
using System.Windows.Forms;
-namespace WarM.浠撳簱绠$悊
+namespace WarM
{
public partial class Gy_BarCodeBill_ChaiMa : Form
{
@@ -61,7 +61,24 @@
oSumGrid_Pay.NoCol = HSnoCol2;
}
- #region 绐椾綋澶勭悊鏂规硶
+ #region 绐椾綋澶勭悊鏂规硶
+ //鍒濆鍖栭〉绛�1鏁版嵁
+ private void intoDate()
+ {
+ try
+ {
+ DataSet Ds;
+ SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+ Ds = oCn.RunProcReturn("select * from h_v_Gy_BarCodeBill_ChaiMa", "h_v_Gy_BarCodeBill_ChaiMa");
+ grdMain.DataSource = Ds.Tables[0].DefaultView;
+
+ }
+ catch (Exception ex )
+ {
+ MessageBox.Show(ex.Message.ToString());
+ }
+
+ }
//鍒濆鍖栭〉绛�1
private void initGrid()
@@ -82,10 +99,8 @@
////闅愯棌鍒�
grdMain.Columns[HTagCol].Visible = false;
grdMain.Columns[HInterID].Visible = false;
- //璁剧疆鍙紪杈戝垪
- string sAllowCol = HNum.ToString();
- //璁剧疆鍚堣鍒�
- string sTotalCol = HTagCol.ToString() + "0";
+
+ //intoDate();
//鏍煎紡鍖栫綉鏍�
//DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid_Mater);
}
@@ -134,26 +149,26 @@
Sub_ClearBill();
}
- //鏁版嵁楠岃瘉
- private bool Sub_AllowSave()
- {
- for (int i = 0; i <= grdMain_Pay.RowCount - 1; i++)
- {
- if (ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HSnoCol2].Value) != 0)
- {
- if (ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HNum2].Value) ==null)
- {
- MessageBox.Show("璇峰皢琛ㄦ牸鎷嗗垎鏁伴噺濉啓瀹屾暣", "鎻愮ず");
- return false;
- }
- }
- else
- {
- return true;
- }
- }
- return true;
- }
+ ////鏁版嵁楠岃瘉
+ //private bool Sub_AllowSave()
+ //{
+ // for (int i = 0; i <= grdMain_Pay.RowCount - 1; i++)
+ // {
+ // if (ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HSnoCol2].Value) != 0)
+ // {
+ // if (ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HNum2].Value) ==null)
+ // {
+ // MessageBox.Show("璇峰皢琛ㄦ牸鎷嗗垎鏁伴噺濉啓瀹屾暣", "鎻愮ず");
+ // return false;
+ // }
+ // }
+ // else
+ // {
+ // return true;
+ // }
+ // }
+ // return true;
+ //}
//鐢熸垚鎸夐挳
private void xz_Click(object sender, EventArgs e)
@@ -170,7 +185,7 @@
//鍒ゆ柇浼氳鏈熸槸鍚﹀悎鐞�
string HBillNo = txtHBillNo.Text;
DataSet Ds;
- double sum = 0;
+ double sum = 0.00000000;
SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
Ds = oCn.RunProcReturn("select top 1* from Gy_BarCodeBill where HBarCode='" + HBillNo + "'", "h_v_Gy_BarCodeBill_ChaiMa");
for (i = 0; i <= grdMain_Pay.RowCount - 1; i++)
@@ -223,7 +238,7 @@
break;
}
}
- if (sum > DBUtility.ClsPub.isLong(grdMain.Rows[0].Cells[HQty].Value))
+ if (sum > DBUtility.ClsPub.isDoule(grdMain.Rows[0].Cells[HQty].Value))
{
MessageBox.Show("椤�2鎷嗗垎鏁伴噺涔嬪拰蹇呴』灏忎簬鏉$爜鏁伴噺锛�");
return false;
--
Gitblit v1.9.1