Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
| | |
| | | oKf_MateOutRequestBill.ShowDialog(); |
| | | break; |
| | | //===================================æ¥è¡¨åæ |
| | | case "kf_icinventory_barcode": |
| | | Kf_ICInventory_BarCode oKf_ICInventory_BarCode = new Kf_ICInventory_BarCode(); |
| | | oKf_ICInventory_BarCode.MdiParent = oMain; |
| | | oKf_ICInventory_BarCode.ModCaption = gnmc; |
| | | oKf_ICInventory_BarCode.Show(); |
| | | oMainForm.AddTabPage(oKf_ICInventory_BarCode); |
| | | break; |
| | | case "wms_barcodestatusqueryreport": |
| | | WMS_BarCodeStatusQueryReport oWMS_BarCodeStatusQueryReport = new WMS_BarCodeStatusQueryReport(); |
| | | oWMS_BarCodeStatusQueryReport.MdiParent = oMain; |
| | |
| | | oSc_PackUnionBill.ModCaption = gnmc; |
| | | oSc_PackUnionBill.ShowDialog(); |
| | | break; |
| | | case "gy_barcodebill_chaima": |
| | | WarM.ä»åºç®¡ç.Gy_BarCodeBill_ChaiMa oGy_BarCodeBill_ChaiMa = new WarM.ä»åºç®¡ç.Gy_BarCodeBill_ChaiMa(); |
| | | oGy_BarCodeBill_ChaiMa.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; |
| | | //oGy_BarCodeBill_ChaiMa.ModCaption = gnmc; |
| | | oGy_BarCodeBill_ChaiMa.ShowDialog(); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | this.cmdSourceBillNo = new System.Windows.Forms.Button(); |
| | | this.P1 = new System.Windows.Forms.Panel(); |
| | | this.gbUp = new System.Windows.Forms.GroupBox(); |
| | | this.txtHMaker = new System.Windows.Forms.TextBox(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.button1 = new System.Windows.Forms.Button(); |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.txtNum = new System.Windows.Forms.TextBox(); |
| | | this.txtHBillNo = new System.Windows.Forms.TextBox(); |
| | | this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.dy = new System.Windows.Forms.ToolStripButton(); |
| | | this.tc = new System.Windows.Forms.ToolStripButton(); |
| | |
| | | this.xz = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.txtHBillNo = new System.Windows.Forms.TextBox(); |
| | | this.txtNum = new System.Windows.Forms.TextBox(); |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.button1 = new System.Windows.Forms.Button(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.txtHMaker = new System.Windows.Forms.TextBox(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).BeginInit(); |
| | | this.tabControl1.SuspendLayout(); |
| | | this.tabPage1.SuspendLayout(); |
| | |
| | | this.gbUp.TabIndex = 33; |
| | | this.gbUp.TabStop = false; |
| | | // |
| | | // txtHMaker |
| | | // |
| | | this.txtHMaker.Location = new System.Drawing.Point(867, 29); |
| | | this.txtHMaker.Name = "txtHMaker"; |
| | | this.txtHMaker.ReadOnly = true; |
| | | this.txtHMaker.Size = new System.Drawing.Size(182, 25); |
| | | this.txtHMaker.TabIndex = 25; |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.Location = new System.Drawing.Point(794, 33); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(67, 15); |
| | | this.label3.TabIndex = 24; |
| | | this.label3.Text = "å¶å人ï¼"; |
| | | // |
| | | // button1 |
| | | // |
| | | this.button1.Location = new System.Drawing.Point(656, 25); |
| | | this.button1.Name = "button1"; |
| | | this.button1.Size = new System.Drawing.Size(84, 31); |
| | | this.button1.TabIndex = 23; |
| | | this.button1.Text = "ç¡® å®"; |
| | | this.button1.UseVisualStyleBackColor = true; |
| | | this.button1.Click += new System.EventHandler(this.button1_Click); |
| | | // |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.Location = new System.Drawing.Point(357, 32); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(82, 15); |
| | | this.label1.TabIndex = 22; |
| | | this.label1.Text = "æåæ¡æ°ï¼"; |
| | | // |
| | | // txtNum |
| | | // |
| | | this.txtNum.Location = new System.Drawing.Point(442, 29); |
| | | this.txtNum.Name = "txtNum"; |
| | | this.txtNum.Size = new System.Drawing.Size(186, 25); |
| | | this.txtNum.TabIndex = 21; |
| | | // |
| | | // txtHBillNo |
| | | // |
| | | this.txtHBillNo.Location = new System.Drawing.Point(146, 29); |
| | | this.txtHBillNo.Name = "txtHBillNo"; |
| | | this.txtHBillNo.Size = new System.Drawing.Size(181, 25); |
| | | this.txtHBillNo.TabIndex = 20; |
| | | // |
| | | // toolStripSeparator12 |
| | | // |
| | | this.toolStripSeparator12.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | |
| | | this.tc.Text = "éåº"; |
| | | this.tc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.tc.Click += new System.EventHandler(this.tc_Click); |
| | | // |
| | | // yl |
| | | // |
| | |
| | | this.grdPrint.Size = new System.Drawing.Size(33, 30); |
| | | this.grdPrint.TabIndex = 53; |
| | | this.grdPrint.Visible = false; |
| | | // |
| | | // txtHBillNo |
| | | // |
| | | this.txtHBillNo.Location = new System.Drawing.Point(146, 29); |
| | | this.txtHBillNo.Name = "txtHBillNo"; |
| | | this.txtHBillNo.Size = new System.Drawing.Size(181, 25); |
| | | this.txtHBillNo.TabIndex = 20; |
| | | // |
| | | // txtNum |
| | | // |
| | | this.txtNum.Location = new System.Drawing.Point(442, 29); |
| | | this.txtNum.Name = "txtNum"; |
| | | this.txtNum.Size = new System.Drawing.Size(186, 25); |
| | | this.txtNum.TabIndex = 21; |
| | | // |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.Location = new System.Drawing.Point(357, 32); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(82, 15); |
| | | this.label1.TabIndex = 22; |
| | | this.label1.Text = "æåæ¡æ°ï¼"; |
| | | // |
| | | // button1 |
| | | // |
| | | this.button1.Location = new System.Drawing.Point(656, 25); |
| | | this.button1.Name = "button1"; |
| | | this.button1.Size = new System.Drawing.Size(84, 31); |
| | | this.button1.TabIndex = 23; |
| | | this.button1.Text = "ç¡® å®"; |
| | | this.button1.UseVisualStyleBackColor = true; |
| | | this.button1.Click += new System.EventHandler(this.button1_Click); |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.Location = new System.Drawing.Point(794, 33); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(67, 15); |
| | | this.label3.TabIndex = 24; |
| | | this.label3.Text = "å¶å人ï¼"; |
| | | // |
| | | // txtHMaker |
| | | // |
| | | this.txtHMaker.Location = new System.Drawing.Point(867, 29); |
| | | this.txtHMaker.Name = "txtHMaker"; |
| | | this.txtHMaker.ReadOnly = true; |
| | | this.txtHMaker.Size = new System.Drawing.Size(182, 25); |
| | | this.txtHMaker.TabIndex = 25; |
| | | // |
| | | // Gy_BarCodeBill_ChaiMa |
| | | // |
| | |
| | | public const string ModName = ""; //åæ®ç±»å |
| | | public const string ModCaption = "æ¡ç æç "; //åæ®åç§° |
| | | public const string ModRightName = "Gy_BarCodeBill_ChaiMa"; |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; //åæ®ç¶æï¼æ°å¢ï¼ä¿®æ¹ï¼æµè§ï¼æ´æ°åä»·ï¼åæ´ï¼ |
| | | ClsGridViewSum oSumGrid_Mater = new ClsGridViewSum(); |
| | | ClsGridViewSum oSumGrid_Pay = new ClsGridViewSum(); |
| | | public DAL.ClsGy_BarCodeBill_ChaiMa BillNew = new DAL.ClsGy_BarCodeBill_ChaiMa(); //对åºåæ®ç±» |
| | |
| | | txtHMaker.Text = DBUtility.ClsPub.CurUserName; |
| | | initGrid(); |
| | | initGrid_Pay(); |
| | | oSumGrid_Mater.NoCol = HSnoCol; |
| | | oSumGrid_Pay.NoCol = HSnoCol2; |
| | | } |
| | | |
| | | #region çªä½å¤çæ¹æ³ |
| | |
| | | //åå§å页ç¾1 |
| | | private void initGrid() |
| | | { |
| | | grdMain.ColumnCount = 9; //æ»åæ° |
| | | grdMain.ColumnCount = 10; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name + "1"); |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HInterID].HeaderText = "HInterID"; |
| | |
| | | //设置å计å |
| | | string sTotalCol = HTagCol.ToString() + "0"; |
| | | //æ ¼å¼åç½æ ¼ |
| | | DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid_Mater); |
| | | //DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid_Mater); |
| | | } |
| | | |
| | | //åå§å页ç¾2 |
| | | private void initGrid_Pay() |
| | | { |
| | | grdMain.ColumnCount = 9; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name + "1"); |
| | | grdMain.Columns[HSnoCol2].HeaderText = "åºå·"; |
| | | grdMain.Columns[HInterID2].HeaderText = "HInterID"; |
| | | grdMain.Columns[HBarCode2].HeaderText = "æ¡ç ç¼å·"; |
| | | grdMain.Columns[HQty2].HeaderText = "æ¡ç æ°é"; |
| | | grdMain.Columns[HNum2].HeaderText = "æåæ°é"; |
| | | grdMain.Columns[HMaterCol2].HeaderText = "ç©æä»£ç "; |
| | | grdMain.Columns[HMaterName2].HeaderText = "ç©æåç§°"; |
| | | grdMain.Columns[HMaterMould2].HeaderText = "è§æ ¼åå·"; |
| | | grdMain.Columns[HBatchNo2].HeaderText = "æ¹å·"; |
| | | grdMain_Pay.ColumnCount = 10; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain_Pay, this.Name + "1"); |
| | | grdMain_Pay.Columns[HSnoCol2].HeaderText = "åºå·"; |
| | | grdMain_Pay.Columns[HInterID2].HeaderText = "HInterID"; |
| | | grdMain_Pay.Columns[HBarCode2].HeaderText = "æ¡ç ç¼å·"; |
| | | grdMain_Pay.Columns[HQty2].HeaderText = "æ¡ç æ°é"; |
| | | grdMain_Pay.Columns[HNum2].HeaderText = "æåæ°é"; |
| | | grdMain_Pay.Columns[HMaterCol2].HeaderText = "ç©æä»£ç "; |
| | | grdMain_Pay.Columns[HMaterName2].HeaderText = "ç©æåç§°"; |
| | | grdMain_Pay.Columns[HMaterMould2].HeaderText = "è§æ ¼åå·"; |
| | | grdMain_Pay.Columns[HBatchNo2].HeaderText = "æ¹å·"; |
| | | //============================================================================= |
| | | ////éèå |
| | | grdMain.Columns[HTagCol].Visible = false; |
| | | grdMain.Columns[HInterID].Visible = false; |
| | | grdMain_Pay.Columns[HTagCol].Visible = false; |
| | | grdMain_Pay.Columns[HInterID].Visible = false; |
| | | //设置å¯ç¼è¾å |
| | | string sAllowCol = HNum2.ToString(); |
| | | //设置å计å |
| | | string sTotalCol = HTagCol2.ToString() + "0"; |
| | | //æ ¼å¼åç½æ ¼ |
| | | DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid_Pay); |
| | | //DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid_Pay); |
| | | } |
| | | |
| | | // åºæ¬ä¸å |
| | |
| | | txtHBillNo.Text = ""; |
| | | txtNum.Text = ""; |
| | | txtHMaker.Text = DBUtility.ClsPub.CurUserName; |
| | | Sub_ClearBill(); |
| | | } |
| | | |
| | | //æ°æ®éªè¯ |
| | | private bool Sub_AllowSave() |
| | | { |
| | | int i = 0; |
| | | while (grdMain_Pay.Rows[i].Cells[HSnoCol].Value.ToString() != "") |
| | | for (int i = 0; i <= grdMain_Pay.RowCount - 1; i++) |
| | | { |
| | | if (grdMain_Pay.Rows[i].Cells[HNum2].Value.ToString() == "") |
| | | if (ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HSnoCol2].Value) != 0) |
| | | { |
| | | MessageBox.Show("请å°è¡¨æ ¼æåæ°éå¡«å宿´", "æç¤º"); |
| | | if (ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HNum2].Value) ==null) |
| | | { |
| | | MessageBox.Show("请å°è¡¨æ ¼æåæ°éå¡«å宿´", "æç¤º"); |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | //çææé® |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | this.SeverDate(); |
| | | } |
| | | private bool SeverDate() |
| | | { |
| | | Int32 i; |
| | | bool bResult; |
| | | BillNew = new DAL.ClsGy_BarCodeBill_ChaiMa(); |
| | | |
| | | if (!Sub_AllowSave())//忮宿´æ§å¤æ |
| | | return false; |
| | | |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | string HBillNo = txtHBillNo.Text; |
| | | DataSet Ds; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | Ds = oCn.RunProcReturn("select top 1* from h_v_Gy_BarCodeBill_ChaiMa where HBarCode='" + HBillNo + "'", "h_v_Gy_BarCodeBill_ChaiMa"); |
| | | |
| | | for (i = 0; i <= grdMain_Pay.RowCount - 1; i++) |
| | | { |
| | | if (ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HBarCode].Value) != 0) |
| | | //if (Sub_AllowSave()) |
| | | //{ |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string HBillNo = txtHBillNo.Text; |
| | | DataSet Ds; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | Ds = oCn.RunProcReturn("select top 1* from h_v_Gy_BarCodeBill_ChaiMa where æ¡ç ç¼å·='" + HBillNo + "'", "h_v_Gy_BarCodeBill_ChaiMa"); |
| | | for (i = 0; i <= grdMain_Pay.RowCount - 1; i++) |
| | | { |
| | | |
| | | Model.ClsGy_BarCodeEdit_Model model = new Model.ClsGy_BarCodeEdit_Model(); |
| | | //åºå®èµå¼======================================== |
| | | model.HEntryID = i + 1; |
| | | model.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); |
| | | model.HBarCode = DBUtility.ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HBarCode].Value); |
| | | model.HQty = DBUtility.ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HQty].Value); |
| | | model.HPieceQty = DBUtility.ClsPub.isInt(grdMain_Pay.Rows[i].Cells[HNum2].Value); |
| | | model.HBatchNo = DBUtility.ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HBatchNo].Value); |
| | | model.HMaterID = DBUtility.ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HMaterCol].Value); |
| | | model.HUnitID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HUnitID"].ToString()); |
| | | model.HSupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSupID"].ToString()); |
| | | model.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"].ToString()); |
| | | model.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"].ToString()); |
| | | model.HBarCodeType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBarCodeType"].ToString()); |
| | | model.HItemSubID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemSubID"].ToString()); |
| | | model.HGroupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HGroupID"].ToString()); |
| | | model.HSourceInterID= DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceInterID"].ToString()); |
| | | model.HSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceEntryID"].ToString()); |
| | | model.HSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HSourceBillNo"].ToString()); |
| | | model.HSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HSourceBillType"].ToString()); |
| | | model.HUseFlag = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUseFlag"].ToString()); |
| | | model.HStopflag = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HStopflag"].ToString()); |
| | | model.HInitQty = DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["HInitQty"].ToString()); |
| | | model.HSourceID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInitQty"].ToString()); |
| | | model.HCusID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCusID"].ToString()); |
| | | model.HSTOCKORGID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSTOCKORGID"].ToString()); |
| | | model.HOWNERID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HOWNERID"].ToString()); |
| | | model.HBarCodeDate= DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HBarCodeDate"].ToString()); |
| | | model.HInnerBillNo= DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HInnerBillNo"].ToString()); |
| | | model.HMZ= DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["HMZ"].ToString()); |
| | | |
| | | model.HMakeDate = DateTime.Now; |
| | | model.HMaker = ClsPub.CurUserName; |
| | | |
| | | if (model.HPieceQty <= 0|| model.HPieceQty.ToString() =="") |
| | | if (ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HSnoCol2].Value) != 0) |
| | | { |
| | | MessageBox.Show("第" + ClsPub.isStrNull(i + 1) + "è¡ï¼æåæ°éå¿
须大äº0ï¼"); |
| | | return false; |
| | | |
| | | Model.ClsGy_BarCodeEdit_Model model = new Model.ClsGy_BarCodeEdit_Model(); |
| | | //åºå®èµå¼======================================== |
| | | model.HEntryID = i + 1; |
| | | model.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); |
| | | model.HBarCode = DBUtility.ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HBarCode].Value); |
| | | model.HQty = DBUtility.ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HNum2].Value); |
| | | model.HQty = DBUtility.ClsPub.isInt(grdMain_Pay.Rows[i].Cells[HNum2].Value); |
| | | model.HBatchNo = DBUtility.ClsPub.isStrNull(grdMain_Pay.Rows[i].Cells[HBatchNo].Value); |
| | | model.HMaterID = DBUtility.ClsPub.isLong(grdMain_Pay.Rows[i].Cells[HMaterCol].Value); |
| | | model.HUnitID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HUnitID"].ToString()); |
| | | model.HSupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSupID"].ToString()); |
| | | model.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"].ToString()); |
| | | model.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"].ToString()); |
| | | model.HBarCodeType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBarCodeType"].ToString()); |
| | | model.HItemSubID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemSubID"].ToString()); |
| | | model.HGroupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HGroupID"].ToString()); |
| | | model.HSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceInterID"].ToString()); |
| | | model.HSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceEntryID"].ToString()); |
| | | model.HSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HSourceBillNo"].ToString()); |
| | | model.HSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HSourceBillType"].ToString()); |
| | | model.HUseFlag = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUseFlag"].ToString()); |
| | | model.HStopflag = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HStopflag"].ToString()); |
| | | model.HInitQty = DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["HInitQty"].ToString()); |
| | | model.HSourceID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInitQty"].ToString()); |
| | | model.HCusID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCusID"].ToString()); |
| | | model.HSTOCKORGID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSTOCKORGID"].ToString()); |
| | | model.HOWNERID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HOWNERID"].ToString()); |
| | | model.HBarCodeDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HBarCodeDate"].ToString()); |
| | | model.HInnerBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HInnerBillNo"].ToString()); |
| | | model.HMZ = DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["HMZ"].ToString()); |
| | | |
| | | model.HMakeDate = DateTime.Now; |
| | | model.HMaker = ClsPub.CurUserName; |
| | | |
| | | if (model.HPieceQty <= 0 || model.HPieceQty.ToString() == "") |
| | | { |
| | | MessageBox.Show("第" + ClsPub.isStrNull(i + 1) + "è¡ï¼æåæ°éå¿
须大äº0ï¼"); |
| | | return false; |
| | | } |
| | | BillNew.DetailColl_Mater.Add(model); |
| | | } |
| | | BillNew.DetailColl_Mater.Add(model); |
| | | } |
| | | } |
| | | return true; |
| | | //ä¿å |
| | | bResult = BillNew.AddBill(ref ClsPub.sExeReturnInfo); |
| | | //æç¤º |
| | | if (bResult == true) |
| | | { |
| | | MessageBox.Show("åæ®åç宿¯!åæ®å·:" + this.txtHBillNo.Text.Trim(), "æç¤º"); |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("ä¿å失败!åå :" + ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return false; |
| | | } |
| | | } |
| | | //çææé® |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | this.SeverDate(); |
| | | |
| | | //ä¿å |
| | | bResult = BillNew.AddBill(ref ClsPub.sExeReturnInfo); |
| | | //æç¤º |
| | | if (bResult == true) |
| | | { |
| | | MessageBox.Show("åæ®åç宿¯!åæ®å·:" + this.txtHBillNo.Text.Trim(), "æç¤º"); |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("ä¿å失败!åå :" + ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return false; |
| | | } |
| | | //} |
| | | //else |
| | | //{ |
| | | // return false; |
| | | //} |
| | | } |
| | | //ç¡®å®æé® |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | if (DBUtility.ClsPub.isStrNull(txtHBillNo.Text) != ""|| DBUtility.ClsPub.isStrNull(txtNum.Text) != "") |
| | | if (DBUtility.ClsPub.isStrNull(txtHBillNo.Text) != ""&& DBUtility.ClsPub.isStrNull(txtNum.Text) != "") |
| | | { |
| | | string HBillNo = txtHBillNo.Text; |
| | | int HNum = int.Parse(txtNum.Text); |
| | | int HNumCan = int.Parse(txtNum.Text); |
| | | DataSet Ds; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | Ds = oCn.RunProcReturn("select top 1* from h_v_Gy_BarCodeBill_ChaiMa where HBarCode='" + HBillNo + "'", "h_v_Gy_BarCodeBill_ChaiMa"); |
| | | grdMain.Rows[0].Cells[HTagCol].Value = "*"; |
| | | grdMain.Rows[0].Cells[HInterID].Value = Ds.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | grdMain.Rows[0].Cells[HBarCode].Value = Ds.Tables[0].Rows[0]["æ¡ç ç¼å·"].ToString(); |
| | | grdMain.Rows[0].Cells[HQty].Value = Ds.Tables[0].Rows[0]["æ¡ç æ°é"].ToString(); |
| | | grdMain.Rows[0].Cells[HNum].Value = 0; |
| | | grdMain.Rows[0].Cells[HMaterCol].Value = Ds.Tables[0].Rows[0]["ç©æä»£ç "].ToString(); |
| | | grdMain.Rows[0].Cells[HMaterName].Value = Ds.Tables[0].Rows[0]["ç©æåç§°"].ToString(); |
| | | grdMain.Rows[0].Cells[HMaterMould].Value = Ds.Tables[0].Rows[0]["è§æ ¼åå·"].ToString(); |
| | | grdMain.Rows[0].Cells[HBatchNo].Value = Ds.Tables[0].Rows[0]["æ¹å·"].ToString(); |
| | | for (int i = 0; i < HNum; i++) |
| | | Ds = oCn.RunProcReturn("select top 1* from h_v_Gy_BarCodeBill_ChaiMa where æ¡ç ç¼å·='" + HBillNo + "'", "h_v_Gy_BarCodeBill_ChaiMa"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | int Code = 65 + i; |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)Code }; |
| | | string A = asciiEncoding.GetString(byteArray); |
| | | string No = Ds.Tables[0].Rows[0]["æ¡ç ç¼å·"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HTagCol2].Value = "*"; |
| | | grdMain_Pay.Rows[0].Cells[HInterID2].Value = Ds.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | grdMain_Pay.Rows[0].Cells[HBarCode2].Value = No + A; |
| | | grdMain_Pay.Rows[0].Cells[HQty2].Value = Ds.Tables[0].Rows[0]["æ¡ç æ°é"].ToString(); |
| | | grdMain_Pay.Rows[0].Cells[HMaterCol2].Value = Ds.Tables[0].Rows[0]["ç©æä»£ç "].ToString(); |
| | | grdMain_Pay.Rows[0].Cells[HMaterName2].Value = Ds.Tables[0].Rows[0]["ç©æåç§°"].ToString(); |
| | | grdMain_Pay.Rows[0].Cells[HMaterMould2].Value = Ds.Tables[0].Rows[0]["è§æ ¼åå·"].ToString(); |
| | | grdMain_Pay.Rows[0].Cells[HBatchNo2].Value = Ds.Tables[0].Rows[0]["æ¹å·"].ToString(); |
| | | MessageBox.Show("æ¡ç ç¼å·ä¸åå¨", "æç¤º"); |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[0].Cells[HTagCol].Value = "*"; |
| | | grdMain.Rows[0].Cells[HSnoCol].Value = 1; |
| | | grdMain.Rows[0].Cells[HInterID].Value = Ds.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | grdMain.Rows[0].Cells[HBarCode].Value = Ds.Tables[0].Rows[0]["æ¡ç ç¼å·"].ToString(); |
| | | grdMain.Rows[0].Cells[HQty].Value = Ds.Tables[0].Rows[0]["æ¡ç æ°é"].ToString(); |
| | | grdMain.Rows[0].Cells[HNum].Value = 0; |
| | | grdMain.Rows[0].Cells[HMaterCol].Value = Ds.Tables[0].Rows[0]["ç©æä»£ç "].ToString(); |
| | | grdMain.Rows[0].Cells[HMaterName].Value = Ds.Tables[0].Rows[0]["ç©æåç§°"].ToString(); |
| | | grdMain.Rows[0].Cells[HMaterMould].Value = Ds.Tables[0].Rows[0]["è§æ ¼åå·"].ToString(); |
| | | grdMain.Rows[0].Cells[HBatchNo].Value = Ds.Tables[0].Rows[0]["æ¹å·"].ToString(); |
| | | for (int i = 0; i < HNumCan; i++) |
| | | { |
| | | int Code = 65 + i; |
| | | System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); |
| | | byte[] byteArray = new byte[] { (byte)Code }; |
| | | string A = asciiEncoding.GetString(byteArray); |
| | | string No = Ds.Tables[0].Rows[0]["æ¡ç ç¼å·"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HTagCol2].Value = "*"; |
| | | grdMain_Pay.Rows[i].Cells[HSnoCol2].Value = HSnoCol2+i; |
| | | grdMain_Pay.Rows[i].Cells[HInterID2].Value = Ds.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HBarCode2].Value = No + A; |
| | | grdMain_Pay.Rows[i].Cells[HQty2].Value = Ds.Tables[0].Rows[0]["æ¡ç æ°é"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HMaterCol2].Value = Ds.Tables[0].Rows[0]["ç©æä»£ç "].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HMaterName2].Value = Ds.Tables[0].Rows[0]["ç©æåç§°"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HMaterMould2].Value = Ds.Tables[0].Rows[0]["è§æ ¼åå·"].ToString(); |
| | | grdMain_Pay.Rows[i].Cells[HBatchNo2].Value = Ds.Tables[0].Rows[0]["æ¹å·"].ToString(); |
| | | } |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | this.Close(); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); |
| | | |
| | | #region åºå®ä»£ç |
| | | #region åºå®ä»£ç |
| | | |
| | | private void initGrid() |
| | | private void Kf_BarCodeOutInReport_Load(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.initGridRpt(grdMain, this.Name); |
| | | } |
| | | |
| | | //å¾å°å¯¹åºå |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | SetFormCaption(); |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | //oSumGrid.oGridsum = grdSum; |
| | | dtpHBDate.Value = DateTime.Today; |
| | | dtpHEDate.Value = DateTime.Today; |
| | | //å è½½åæ®ç±»åä¿¡æ¯ |
| | | Sub_AddBillTypeList(); |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | //å è½½åæ®ç±»åä¿¡æ¯ |
| | | private void Sub_AddBillTypeList() |
| | | { |
| | | this.Close(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DataSet ds = oCn.RunProcReturn("exec h_p_WMS_BarCodeReport_BillType ", "h_p_WMS_BarCodeReport_BillType"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("è·ååæ®ç±»å失败"); |
| | | return; |
| | | } |
| | | cmbBillType.Items.Clear(); |
| | | cmbBillType.Items.Add("å
¨é¨"); |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | cmbBillType.Items.Add(DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBillTypeName"])); |
| | | } |
| | | cmbBillType.Text = "å
¨é¨"; |
| | | } |
| | | |
| | | //Kf_BarCodeOutInReportDlg oDlg = new Kf_BarCodeOutInReportDlg(); |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | //oDlg.ShowDialog(); |
| | | //if (oDlg.IsOk == 1) |
| | | //{ |
| | | timer1.Enabled = true; |
| | | //} |
| | | } |
| | | //设置æ¥è¡¨åç§° |
| | | private void SetFormCaption() |
| | | { |
| | |
| | | cmbBillType.SelectedIndex = 0; |
| | | } |
| | | |
| | | |
| | | private void Frm_EasyReport_Load(object sender, EventArgs e) |
| | | private void initGrid() |
| | | { |
| | | SetFormCaption(); |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | //oSumGrid.oGridsum = grdSum; |
| | | dtpHBDate.Value = DateTime.Today; |
| | | dtpHEDate.Value = DateTime.Today; |
| | | DBUtility.Xt_BaseBillFun.initGridRpt(grdMain, this.Name); |
| | | } |
| | | |
| | | //åå§å表头æ¾ç¤º |
| | | private void initHeadCaption() |
| | | { |
| | | |
| | | } |
| | | |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | private void Xs_SellOutPriceReport_KeyUp(object sender, KeyEventArgs e) |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | if (e.KeyValue == 13) |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | |
| | | //æå° |
| | | private void dy_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_SetReport(); |
| | | Report.Print(true); |
| | | } |
| | | //é¢è§ |
| | | private void view_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_SetReport(); |
| | | Report.PrintPreview(true); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region çé¢å¤ç |
| | | //åå§å表头æ¾ç¤º |
| | | private void initHeadCaption() |
| | | { |
| | | |
| | | timer2.Enabled = false; |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private bool Fun_AllowQuery()//å®¡æ ¸æ¥è¯¢æ¡ä»¶ |
| | |
| | | return true; |
| | | } |
| | | |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | |
| | | //å¾å°å¯¹åºå |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | |
| | | private void Xs_SellOutPriceReport_KeyUp(object sender, KeyEventArgs e) |
| | | { |
| | | if (e.KeyValue == 13) |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | //ä¿åå宽 |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | //é»è®¤å宽 |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region æ¥è¯¢åè½ |
| | | |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void Display() |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | DataSet DSet = new DataSet(); |
| | | //æ¾ç¤ºæ¥è¡¨å¤´ æ é¢ |
| | | |
| | | //æ¾ç¤ºè¿æ»¤æ¡ä»¶ |
| | | |
| | | |
| | | //è¿æ»¤æ¡ä»¶Dlg |
| | | string sDlgWhere = ""; |
| | | sDlgWhere = sDlgWhere + ",'" + dtpHBDate.Value.ToShortDateString() + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + dtpHEDate.Value.ToShortDateString() + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHMater.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHWHName.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHSPName.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHBatchNo.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHBarCode.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + cmbBillType.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHBillNo.Text + "'"; |
| | | //sDlgWhere = sDlgWhere + ",'" + oDlg.cmbHSumType.Text.Trim() + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHBarCode.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHMater.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHBatchNo.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHWHName.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHSPName.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHSourceBillNo.Text + "'"; |
| | | sDlgWhere = sDlgWhere + ",'" + txtHMaker.Text + "'"; |
| | | if (sDlgWhere.Trim().Length > 0) |
| | | { |
| | | sDlgWhere = sDlgWhere.Substring(1, sDlgWhere.Length - 1); |
| | | } |
| | | //è¿æ»¤æ¡ä»¶ |
| | | //string sWhere = ""; |
| | | //sWhere = sWhere + ",'" + dtpHBDate.Value.ToShortDateString() + "'"; |
| | | //sWhere = sWhere + ",'" + dtpHEDate.Value.ToShortDateString() + "'"; |
| | | //sWhere = sWhere + "," + ClsPub.isLong(txtHCusID.Tag) + ""; |
| | | //sWhere = sWhere + ",3"; |
| | | //if (sWhere.Trim().Length > 0) |
| | | //{ |
| | | // sWhere = sWhere.Substring(1, sWhere.Length - 1); |
| | | //} |
| | | // |
| | | DSet = SubCn.RunProcReturn("exec h_p_Kf_BarCodeOutInReport " + sDlgWhere, "h_p_Kf_BarCodeOutInReport"); |
| | | |
| | | DSet = SubCn.RunProcReturn("exec h_p_Kf_BarCodeOutInReport_New " + sDlgWhere, "h_p_Kf_BarCodeOutInReport_New"); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region æå°è®¾ç½® |
| | | #region 导åºåè½ |
| | | |
| | | //æå°è®¾ç½® |
| | | GridppReport Report; |
| | | //设置æå°æ¨¡çè·¯å¾ |
| | | private void Sub_SetReport() |
| | | { |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(ClsPub.AppPath + @"\Report\åºæ¶æ¬¾æç»è¡¨.grf"); //here . |
| | | Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord); |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | //å¡«å
¥åæ®è¡¨å¤´ä¿¡æ¯ |
| | | private void ReportBeforePostRecord()//your report?kao |
| | | { |
| | | //Report.FieldByName("HDateItemID").AsString = lblHDateItemID.Text; |
| | | //Report.FieldByName("CusNumber").AsString = lblHCusNumber.Text; |
| | | //Report.FieldByName("CusName").AsString = lblHCusName.Text; |
| | | //Report.FieldByName("BeginBalance").AsString = lblHBeginBalance.Text; |
| | | } |
| | | //å¡«å
¥åæ®æç»ä¿¡æ¯ |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | //BLL.Utility.FillRecordToReport(Report, grdMain, false); |
| | | } |
| | | #endregion |
| | | |
| | | #region æ°æ®å¯¼åº |
| | | |
| | | |
| | | //å¼åº |
| | | private void yc_Click(object sender, EventArgs e) |
| | | { |
| | | //BLL.ClsPub_BLL.DataGridViewToExcel2(grdMain, this.Text); |
| | |
| | | } |
| | | } |
| | | |
| | | //å¯¼åº |
| | | private void dc_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region éåºåè½ |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | timer2.Enabled = false; |
| | | //oDlg.ShowDialog(); |
| | | //if (oDlg.IsOk == 1) |
| | | //{ |
| | | timer1.Enabled = true; |
| | | //} |
| | | this.Close(); |
| | | } |
| | | |
| | | private void Total() |
| | | #endregion |
| | | |
| | | #region æå°åè½ |
| | | |
| | | //æå°è®¾ç½® |
| | | GridppReport Report; |
| | | |
| | | //é¢è§ |
| | | private void view_Click(object sender, EventArgs e) |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | Sub_SetReport(); |
| | | Report.PrintPreview(true); |
| | | } |
| | | |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | //æå° |
| | | private void dy_Click(object sender, EventArgs e) |
| | | { |
| | | Total(); |
| | | Sub_SetReport(); |
| | | Report.Print(true); |
| | | } |
| | | |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | //设置æå°æ¨¡çè·¯å¾ |
| | | private void Sub_SetReport() |
| | | { |
| | | Total(); |
| | | |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(ClsPub.AppPath + @"\Report\åºæ¶æ¬¾æç»è¡¨.grf"); //here . |
| | | Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord); |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | //å¡«å
¥åæ®è¡¨å¤´ä¿¡æ¯ |
| | | private void ReportBeforePostRecord()//your report?kao |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | //Report.FieldByName("HDateItemID").AsString = lblHDateItemID.Text; |
| | | //Report.FieldByName("CusNumber").AsString = lblHCusNumber.Text; |
| | | //Report.FieldByName("CusName").AsString = lblHCusName.Text; |
| | | //Report.FieldByName("BeginBalance").AsString = lblHBeginBalance.Text; |
| | | } |
| | | |
| | | |
| | | //å¡«å
¥åæ®æç»ä¿¡æ¯ |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | //BLL.Utility.FillRecordToReport(Report, grdMain, false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Kf_BarCodeOutInReport)); |
| | | this.timer1 = new System.Windows.Forms.Timer(this.components); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.dc = new System.Windows.Forms.ToolStripButton(); |
| | | this.yl = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.dy = new System.Windows.Forms.ToolStripButton(); |
| | |
| | | this.bclk = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.pPic = new System.Windows.Forms.Panel(); |
| | | this.cmbBillType = new System.Windows.Forms.ComboBox(); |
| | | this.label10 = new System.Windows.Forms.Label(); |
| | | this.dtpHBDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.dtpHEDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.label5 = new System.Windows.Forms.Label(); |
| | | this.label6 = new System.Windows.Forms.Label(); |
| | | this.txtHSPName = new System.Windows.Forms.TextBox(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.txtHWHName = new System.Windows.Forms.TextBox(); |
| | | this.label2 = new System.Windows.Forms.Label(); |
| | | this.txtHMater = new System.Windows.Forms.TextBox(); |
| | | this.label4 = new System.Windows.Forms.Label(); |
| | | this.txtHBatchNo = new System.Windows.Forms.TextBox(); |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.txtHBarCode = new System.Windows.Forms.TextBox(); |
| | | this.label7 = new System.Windows.Forms.Label(); |
| | | this.lblCaption = new System.Windows.Forms.Label(); |
| | | this.timer2 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdMain = new System.Windows.Forms.DataGridView(); |
| | | this.groupBox1 = new System.Windows.Forms.GroupBox(); |
| | | this.txtHSourceBillNo = new System.Windows.Forms.TextBox(); |
| | | this.txtHBillNo = new System.Windows.Forms.TextBox(); |
| | | this.dtpHBDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.cmbBillType = new System.Windows.Forms.ComboBox(); |
| | | this.txtHBarCode = new System.Windows.Forms.TextBox(); |
| | | this.txtHBatchNo = new System.Windows.Forms.TextBox(); |
| | | this.dtpHEDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.txtHMater = new System.Windows.Forms.TextBox(); |
| | | this.txtHSPName = new System.Windows.Forms.TextBox(); |
| | | this.txtHWHName = new System.Windows.Forms.TextBox(); |
| | | this.label9 = new System.Windows.Forms.Label(); |
| | | this.label8 = new System.Windows.Forms.Label(); |
| | | this.label7 = new System.Windows.Forms.Label(); |
| | | this.label10 = new System.Windows.Forms.Label(); |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.label4 = new System.Windows.Forms.Label(); |
| | | this.label5 = new System.Windows.Forms.Label(); |
| | | this.label6 = new System.Windows.Forms.Label(); |
| | | this.label2 = new System.Windows.Forms.Label(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.label11 = new System.Windows.Forms.Label(); |
| | | this.txtHMaker = new System.Windows.Forms.TextBox(); |
| | | this.Tool.SuspendLayout(); |
| | | this.pPic.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.groupBox1.SuspendLayout(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // timer1 |
| | |
| | | this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); |
| | | this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
| | | this.dc, |
| | | this.yl, |
| | | this.toolStripSeparator4, |
| | | this.dy, |
| | |
| | | this.Tool.Stretch = true; |
| | | this.Tool.TabIndex = 16; |
| | | this.Tool.Text = "toolStrip1"; |
| | | // |
| | | // dc |
| | | // |
| | | this.dc.AutoSize = false; |
| | | this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image"))); |
| | | this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.dc.Name = "dc"; |
| | | this.dc.Size = new System.Drawing.Size(35, 42); |
| | | this.dc.Text = "导åº"; |
| | | this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dc.ToolTipText = "导åº"; |
| | | this.dc.Click += new System.EventHandler(this.dc_Click); |
| | | // |
| | | // yl |
| | | // |
| | |
| | | this.pPic.BackColor = System.Drawing.Color.White; |
| | | this.pPic.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pPic.BackgroundImage"))); |
| | | this.pPic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; |
| | | this.pPic.Controls.Add(this.txtHBillNo); |
| | | this.pPic.Controls.Add(this.label8); |
| | | this.pPic.Controls.Add(this.cmbBillType); |
| | | this.pPic.Controls.Add(this.label10); |
| | | this.pPic.Controls.Add(this.dtpHBDate); |
| | | this.pPic.Controls.Add(this.dtpHEDate); |
| | | this.pPic.Controls.Add(this.label5); |
| | | this.pPic.Controls.Add(this.label6); |
| | | this.pPic.Controls.Add(this.txtHSPName); |
| | | this.pPic.Controls.Add(this.label3); |
| | | this.pPic.Controls.Add(this.txtHWHName); |
| | | this.pPic.Controls.Add(this.label2); |
| | | this.pPic.Controls.Add(this.txtHMater); |
| | | this.pPic.Controls.Add(this.label4); |
| | | this.pPic.Controls.Add(this.txtHBatchNo); |
| | | this.pPic.Controls.Add(this.label1); |
| | | this.pPic.Controls.Add(this.txtHBarCode); |
| | | this.pPic.Controls.Add(this.label7); |
| | | this.pPic.Controls.Add(this.lblCaption); |
| | | this.pPic.Dock = System.Windows.Forms.DockStyle.Top; |
| | | this.pPic.Location = new System.Drawing.Point(0, 47); |
| | | this.pPic.Name = "pPic"; |
| | | this.pPic.Size = new System.Drawing.Size(1138, 53); |
| | | this.pPic.Size = new System.Drawing.Size(1138, 41); |
| | | this.pPic.TabIndex = 17; |
| | | // |
| | | // cmbBillType |
| | | // |
| | | this.cmbBillType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
| | | this.cmbBillType.FormattingEnabled = true; |
| | | this.cmbBillType.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.cmbBillType.Items.AddRange(new object[] { |
| | | "å
¨é¨", |
| | | "å¤è´å
¥åº", |
| | | "产åå
¥åº", |
| | | "çäº§é¢æå", |
| | | "è°æ¨å", |
| | | "å
¶ä»å
¥åº", |
| | | "å
¶ä»åºåºå", |
| | | "å§å¤å å·¥å
¥åºå", |
| | | "å§å¤å å·¥åºåºå"}); |
| | | this.cmbBillType.Location = new System.Drawing.Point(964, 2); |
| | | this.cmbBillType.Name = "cmbBillType"; |
| | | this.cmbBillType.Size = new System.Drawing.Size(130, 20); |
| | | this.cmbBillType.TabIndex = 62; |
| | | // |
| | | // label10 |
| | | // |
| | | this.label10.AutoSize = true; |
| | | this.label10.ForeColor = System.Drawing.Color.Black; |
| | | this.label10.Location = new System.Drawing.Point(907, 6); |
| | | this.label10.Name = "label10"; |
| | | this.label10.Size = new System.Drawing.Size(53, 12); |
| | | this.label10.TabIndex = 63; |
| | | this.label10.Text = "åæ®ç±»å"; |
| | | // |
| | | // dtpHBDate |
| | | // |
| | | this.dtpHBDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHBDate.Location = new System.Drawing.Point(241, 2); |
| | | this.dtpHBDate.Name = "dtpHBDate"; |
| | | this.dtpHBDate.Size = new System.Drawing.Size(122, 21); |
| | | this.dtpHBDate.TabIndex = 59; |
| | | // |
| | | // dtpHEDate |
| | | // |
| | | this.dtpHEDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHEDate.Location = new System.Drawing.Point(241, 28); |
| | | this.dtpHEDate.Name = "dtpHEDate"; |
| | | this.dtpHEDate.Size = new System.Drawing.Size(122, 21); |
| | | this.dtpHEDate.TabIndex = 61; |
| | | // |
| | | // label5 |
| | | // |
| | | this.label5.AutoSize = true; |
| | | this.label5.BackColor = System.Drawing.Color.Transparent; |
| | | this.label5.Location = new System.Drawing.Point(179, 6); |
| | | this.label5.Name = "label5"; |
| | | this.label5.Size = new System.Drawing.Size(65, 12); |
| | | this.label5.TabIndex = 58; |
| | | this.label5.Text = "å¼å§æ¥æï¼"; |
| | | // |
| | | // label6 |
| | | // |
| | | this.label6.AutoSize = true; |
| | | this.label6.BackColor = System.Drawing.Color.Transparent; |
| | | this.label6.Location = new System.Drawing.Point(179, 32); |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(65, 12); |
| | | this.label6.TabIndex = 60; |
| | | this.label6.Text = "ç»ææ¥æï¼"; |
| | | // |
| | | // txtHSPName |
| | | // |
| | | this.txtHSPName.Location = new System.Drawing.Point(588, 28); |
| | | this.txtHSPName.Name = "txtHSPName"; |
| | | this.txtHSPName.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHSPName.TabIndex = 57; |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.BackColor = System.Drawing.Color.Transparent; |
| | | this.label3.Location = new System.Drawing.Point(545, 32); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(47, 12); |
| | | this.label3.TabIndex = 56; |
| | | this.label3.Text = "ä» ä½ï¼"; |
| | | // |
| | | // txtHWHName |
| | | // |
| | | this.txtHWHName.Location = new System.Drawing.Point(588, 2); |
| | | this.txtHWHName.Name = "txtHWHName"; |
| | | this.txtHWHName.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHWHName.TabIndex = 55; |
| | | // |
| | | // label2 |
| | | // |
| | | this.label2.AutoSize = true; |
| | | this.label2.BackColor = System.Drawing.Color.Transparent; |
| | | this.label2.Location = new System.Drawing.Point(545, 6); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(47, 12); |
| | | this.label2.TabIndex = 54; |
| | | this.label2.Text = "ä» åºï¼"; |
| | | // |
| | | // txtHMater |
| | | // |
| | | this.txtHMater.Location = new System.Drawing.Point(409, 2); |
| | | this.txtHMater.Name = "txtHMater"; |
| | | this.txtHMater.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHMater.TabIndex = 53; |
| | | // |
| | | // label4 |
| | | // |
| | | this.label4.AutoSize = true; |
| | | this.label4.BackColor = System.Drawing.Color.Transparent; |
| | | this.label4.Location = new System.Drawing.Point(367, 6); |
| | | this.label4.Name = "label4"; |
| | | this.label4.Size = new System.Drawing.Size(47, 12); |
| | | this.label4.TabIndex = 52; |
| | | this.label4.Text = "ç© æï¼"; |
| | | // |
| | | // txtHBatchNo |
| | | // |
| | | this.txtHBatchNo.Location = new System.Drawing.Point(409, 28); |
| | | this.txtHBatchNo.Name = "txtHBatchNo"; |
| | | this.txtHBatchNo.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHBatchNo.TabIndex = 51; |
| | | // |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.BackColor = System.Drawing.Color.Transparent; |
| | | this.label1.Location = new System.Drawing.Point(367, 32); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(47, 12); |
| | | this.label1.TabIndex = 50; |
| | | this.label1.Text = "æ¹ å·ï¼"; |
| | | // |
| | | // txtHBarCode |
| | | // |
| | | this.txtHBarCode.Location = new System.Drawing.Point(772, 28); |
| | | this.txtHBarCode.Name = "txtHBarCode"; |
| | | this.txtHBarCode.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHBarCode.TabIndex = 49; |
| | | // |
| | | // label7 |
| | | // |
| | | this.label7.AutoSize = true; |
| | | this.label7.BackColor = System.Drawing.Color.Transparent; |
| | | this.label7.Location = new System.Drawing.Point(724, 32); |
| | | this.label7.Name = "label7"; |
| | | this.label7.Size = new System.Drawing.Size(53, 12); |
| | | this.label7.TabIndex = 48; |
| | | this.label7.Text = "æ¡å½¢ç ï¼"; |
| | | // |
| | | // lblCaption |
| | | // |
| | |
| | | this.grdMain.BackgroundColor = System.Drawing.Color.White; |
| | | this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdMain.Location = new System.Drawing.Point(0, 100); |
| | | this.grdMain.Location = new System.Drawing.Point(0, 153); |
| | | this.grdMain.Name = "grdMain"; |
| | | this.grdMain.ReadOnly = true; |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.Size = new System.Drawing.Size(1138, 353); |
| | | this.grdMain.Size = new System.Drawing.Size(1138, 300); |
| | | this.grdMain.TabIndex = 69; |
| | | // |
| | | // groupBox1 |
| | | // |
| | | this.groupBox1.BackColor = System.Drawing.Color.Lavender; |
| | | this.groupBox1.Controls.Add(this.txtHSourceBillNo); |
| | | this.groupBox1.Controls.Add(this.txtHMaker); |
| | | this.groupBox1.Controls.Add(this.txtHBillNo); |
| | | this.groupBox1.Controls.Add(this.dtpHBDate); |
| | | this.groupBox1.Controls.Add(this.cmbBillType); |
| | | this.groupBox1.Controls.Add(this.txtHBarCode); |
| | | this.groupBox1.Controls.Add(this.txtHBatchNo); |
| | | this.groupBox1.Controls.Add(this.dtpHEDate); |
| | | this.groupBox1.Controls.Add(this.txtHMater); |
| | | this.groupBox1.Controls.Add(this.txtHSPName); |
| | | this.groupBox1.Controls.Add(this.txtHWHName); |
| | | this.groupBox1.Controls.Add(this.label9); |
| | | this.groupBox1.Controls.Add(this.label11); |
| | | this.groupBox1.Controls.Add(this.label8); |
| | | this.groupBox1.Controls.Add(this.label7); |
| | | this.groupBox1.Controls.Add(this.label10); |
| | | this.groupBox1.Controls.Add(this.label1); |
| | | this.groupBox1.Controls.Add(this.label4); |
| | | this.groupBox1.Controls.Add(this.label5); |
| | | this.groupBox1.Controls.Add(this.label6); |
| | | this.groupBox1.Controls.Add(this.label2); |
| | | this.groupBox1.Controls.Add(this.label3); |
| | | this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top; |
| | | this.groupBox1.Location = new System.Drawing.Point(0, 88); |
| | | this.groupBox1.Name = "groupBox1"; |
| | | this.groupBox1.Size = new System.Drawing.Size(1138, 65); |
| | | this.groupBox1.TabIndex = 71; |
| | | this.groupBox1.TabStop = false; |
| | | // |
| | | // txtHSourceBillNo |
| | | // |
| | | this.txtHSourceBillNo.Location = new System.Drawing.Point(623, 40); |
| | | this.txtHSourceBillNo.Name = "txtHSourceBillNo"; |
| | | this.txtHSourceBillNo.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHSourceBillNo.TabIndex = 69; |
| | | // |
| | | // txtHBillNo |
| | | // |
| | | this.txtHBillNo.Location = new System.Drawing.Point(772, 2); |
| | | this.txtHBillNo.Location = new System.Drawing.Point(804, 14); |
| | | this.txtHBillNo.Name = "txtHBillNo"; |
| | | this.txtHBillNo.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHBillNo.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHBillNo.TabIndex = 65; |
| | | // |
| | | // dtpHBDate |
| | | // |
| | | this.dtpHBDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHBDate.Location = new System.Drawing.Point(79, 14); |
| | | this.dtpHBDate.Name = "dtpHBDate"; |
| | | this.dtpHBDate.Size = new System.Drawing.Size(122, 21); |
| | | this.dtpHBDate.TabIndex = 59; |
| | | // |
| | | // cmbBillType |
| | | // |
| | | this.cmbBillType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
| | | this.cmbBillType.FormattingEnabled = true; |
| | | this.cmbBillType.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.cmbBillType.Items.AddRange(new object[] { |
| | | "å
¨é¨"}); |
| | | this.cmbBillType.Location = new System.Drawing.Point(993, 14); |
| | | this.cmbBillType.Name = "cmbBillType"; |
| | | this.cmbBillType.Size = new System.Drawing.Size(122, 20); |
| | | this.cmbBillType.TabIndex = 62; |
| | | // |
| | | // txtHBarCode |
| | | // |
| | | this.txtHBarCode.Location = new System.Drawing.Point(623, 14); |
| | | this.txtHBarCode.Name = "txtHBarCode"; |
| | | this.txtHBarCode.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHBarCode.TabIndex = 49; |
| | | // |
| | | // txtHBatchNo |
| | | // |
| | | this.txtHBatchNo.Location = new System.Drawing.Point(253, 40); |
| | | this.txtHBatchNo.Name = "txtHBatchNo"; |
| | | this.txtHBatchNo.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHBatchNo.TabIndex = 51; |
| | | // |
| | | // dtpHEDate |
| | | // |
| | | this.dtpHEDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHEDate.Location = new System.Drawing.Point(79, 40); |
| | | this.dtpHEDate.Name = "dtpHEDate"; |
| | | this.dtpHEDate.Size = new System.Drawing.Size(122, 21); |
| | | this.dtpHEDate.TabIndex = 61; |
| | | // |
| | | // txtHMater |
| | | // |
| | | this.txtHMater.Location = new System.Drawing.Point(253, 14); |
| | | this.txtHMater.Name = "txtHMater"; |
| | | this.txtHMater.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHMater.TabIndex = 53; |
| | | // |
| | | // txtHSPName |
| | | // |
| | | this.txtHSPName.Location = new System.Drawing.Point(429, 40); |
| | | this.txtHSPName.Name = "txtHSPName"; |
| | | this.txtHSPName.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHSPName.TabIndex = 57; |
| | | // |
| | | // txtHWHName |
| | | // |
| | | this.txtHWHName.Location = new System.Drawing.Point(429, 14); |
| | | this.txtHWHName.Name = "txtHWHName"; |
| | | this.txtHWHName.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHWHName.TabIndex = 55; |
| | | // |
| | | // label9 |
| | | // |
| | | this.label9.AutoSize = true; |
| | | this.label9.BackColor = System.Drawing.Color.Transparent; |
| | | this.label9.Location = new System.Drawing.Point(559, 44); |
| | | this.label9.Name = "label9"; |
| | | this.label9.Size = new System.Drawing.Size(65, 12); |
| | | this.label9.TabIndex = 68; |
| | | this.label9.Text = "æºååå·ï¼"; |
| | | // |
| | | // label8 |
| | | // |
| | | this.label8.AutoSize = true; |
| | | this.label8.BackColor = System.Drawing.Color.Transparent; |
| | | this.label8.Location = new System.Drawing.Point(724, 6); |
| | | this.label8.Location = new System.Drawing.Point(752, 18); |
| | | this.label8.Name = "label8"; |
| | | this.label8.Size = new System.Drawing.Size(53, 12); |
| | | this.label8.TabIndex = 64; |
| | | this.label8.Text = "åæ®å·ï¼"; |
| | | // |
| | | // label7 |
| | | // |
| | | this.label7.AutoSize = true; |
| | | this.label7.BackColor = System.Drawing.Color.Transparent; |
| | | this.label7.Location = new System.Drawing.Point(559, 18); |
| | | this.label7.Name = "label7"; |
| | | this.label7.Size = new System.Drawing.Size(65, 12); |
| | | this.label7.TabIndex = 48; |
| | | this.label7.Text = "æ¡ç ç¼å·ï¼"; |
| | | // |
| | | // label10 |
| | | // |
| | | this.label10.AutoSize = true; |
| | | this.label10.ForeColor = System.Drawing.Color.Black; |
| | | this.label10.Location = new System.Drawing.Point(931, 18); |
| | | this.label10.Name = "label10"; |
| | | this.label10.Size = new System.Drawing.Size(65, 12); |
| | | this.label10.TabIndex = 63; |
| | | this.label10.Text = "åæ®ç±»åï¼"; |
| | | // |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.BackColor = System.Drawing.Color.Transparent; |
| | | this.label1.Location = new System.Drawing.Point(209, 44); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(47, 12); |
| | | this.label1.TabIndex = 50; |
| | | this.label1.Text = "æ¹ å·ï¼"; |
| | | // |
| | | // label4 |
| | | // |
| | | this.label4.AutoSize = true; |
| | | this.label4.BackColor = System.Drawing.Color.Transparent; |
| | | this.label4.Location = new System.Drawing.Point(209, 18); |
| | | this.label4.Name = "label4"; |
| | | this.label4.Size = new System.Drawing.Size(47, 12); |
| | | this.label4.TabIndex = 52; |
| | | this.label4.Text = "ç© æï¼"; |
| | | // |
| | | // label5 |
| | | // |
| | | this.label5.AutoSize = true; |
| | | this.label5.BackColor = System.Drawing.Color.Transparent; |
| | | this.label5.Location = new System.Drawing.Point(17, 18); |
| | | this.label5.Name = "label5"; |
| | | this.label5.Size = new System.Drawing.Size(65, 12); |
| | | this.label5.TabIndex = 58; |
| | | this.label5.Text = "å¼å§æ¥æï¼"; |
| | | // |
| | | // label6 |
| | | // |
| | | this.label6.AutoSize = true; |
| | | this.label6.BackColor = System.Drawing.Color.Transparent; |
| | | this.label6.Location = new System.Drawing.Point(17, 44); |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(65, 12); |
| | | this.label6.TabIndex = 60; |
| | | this.label6.Text = "ç»ææ¥æï¼"; |
| | | // |
| | | // label2 |
| | | // |
| | | this.label2.AutoSize = true; |
| | | this.label2.BackColor = System.Drawing.Color.Transparent; |
| | | this.label2.Location = new System.Drawing.Point(383, 18); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(47, 12); |
| | | this.label2.TabIndex = 54; |
| | | this.label2.Text = "ä» åºï¼"; |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.BackColor = System.Drawing.Color.Transparent; |
| | | this.label3.Location = new System.Drawing.Point(383, 44); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(47, 12); |
| | | this.label3.TabIndex = 56; |
| | | this.label3.Text = "ä» ä½ï¼"; |
| | | // |
| | | // label11 |
| | | // |
| | | this.label11.AutoSize = true; |
| | | this.label11.BackColor = System.Drawing.Color.Transparent; |
| | | this.label11.Location = new System.Drawing.Point(752, 44); |
| | | this.label11.Name = "label11"; |
| | | this.label11.Size = new System.Drawing.Size(53, 12); |
| | | this.label11.TabIndex = 66; |
| | | this.label11.Text = "å¶å人ï¼"; |
| | | // |
| | | // txtHMaker |
| | | // |
| | | this.txtHMaker.Location = new System.Drawing.Point(804, 40); |
| | | this.txtHMaker.Name = "txtHMaker"; |
| | | this.txtHMaker.Size = new System.Drawing.Size(122, 21); |
| | | this.txtHMaker.TabIndex = 67; |
| | | // |
| | | // Kf_BarCodeOutInReport |
| | | // |
| | |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1138, 453); |
| | | this.Controls.Add(this.grdMain); |
| | | this.Controls.Add(this.groupBox1); |
| | | this.Controls.Add(this.pPic); |
| | | this.Controls.Add(this.Tool); |
| | | this.KeyPreview = true; |
| | | this.Name = "Kf_BarCodeOutInReport"; |
| | | this.Text = "ReportTemplet"; |
| | | this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
| | | this.Load += new System.EventHandler(this.Frm_EasyReport_Load); |
| | | this.Load += new System.EventHandler(this.Kf_BarCodeOutInReport_Load); |
| | | this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Xs_SellOutPriceReport_KeyUp); |
| | | this.Tool.ResumeLayout(false); |
| | | this.Tool.PerformLayout(); |
| | | this.pPic.ResumeLayout(false); |
| | | this.pPic.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); |
| | | this.groupBox1.ResumeLayout(false); |
| | | this.groupBox1.PerformLayout(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private System.Windows.Forms.Panel pPic; |
| | | private System.Windows.Forms.Label lblCaption; |
| | | private System.Windows.Forms.Timer timer2; |
| | | public System.Windows.Forms.TextBox txtHBarCode; |
| | | private System.Windows.Forms.Label label7; |
| | | private System.Windows.Forms.DataGridView grdMain; |
| | | private System.Windows.Forms.TextBox txtHSPName; |
| | | private System.Windows.Forms.Label label3; |
| | | private System.Windows.Forms.TextBox txtHWHName; |
| | | private System.Windows.Forms.Label label2; |
| | | private System.Windows.Forms.TextBox txtHMater; |
| | | private System.Windows.Forms.Label label4; |
| | | private System.Windows.Forms.TextBox txtHBatchNo; |
| | | private System.Windows.Forms.Label label1; |
| | | private System.Windows.Forms.GroupBox groupBox1; |
| | | public System.Windows.Forms.TextBox txtHSourceBillNo; |
| | | public System.Windows.Forms.TextBox txtHBillNo; |
| | | private System.Windows.Forms.DateTimePicker dtpHBDate; |
| | | private System.Windows.Forms.ComboBox cmbBillType; |
| | | public System.Windows.Forms.TextBox txtHBarCode; |
| | | private System.Windows.Forms.TextBox txtHBatchNo; |
| | | private System.Windows.Forms.DateTimePicker dtpHEDate; |
| | | private System.Windows.Forms.TextBox txtHMater; |
| | | private System.Windows.Forms.TextBox txtHSPName; |
| | | private System.Windows.Forms.TextBox txtHWHName; |
| | | private System.Windows.Forms.Label label9; |
| | | private System.Windows.Forms.Label label8; |
| | | private System.Windows.Forms.Label label7; |
| | | private System.Windows.Forms.Label label10; |
| | | private System.Windows.Forms.Label label1; |
| | | private System.Windows.Forms.Label label4; |
| | | private System.Windows.Forms.Label label5; |
| | | private System.Windows.Forms.Label label6; |
| | | private System.Windows.Forms.ComboBox cmbBillType; |
| | | private System.Windows.Forms.Label label10; |
| | | public System.Windows.Forms.TextBox txtHBillNo; |
| | | private System.Windows.Forms.Label label8; |
| | | private System.Windows.Forms.Label label2; |
| | | private System.Windows.Forms.Label label3; |
| | | private System.Windows.Forms.ToolStripButton dc; |
| | | public System.Windows.Forms.TextBox txtHMaker; |
| | | private System.Windows.Forms.Label label11; |
| | | } |
| | | } |
| | |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>98, 21</value> |
| | | </metadata> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>188, 21</value> |
| | | </metadata> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="Tool.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | /9j/4AAQSkZJRgABAQEASABIAAD/4QR8RXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAAB |
| | |
| | | p6K5iiiwHT0VzFKaLAdNRXMUUWA6eiuYoosB09FcxRRYDp6K5iiiwHT0VzFFFgOnormKKLAdPRXMUUWA |
| | | 6eiuYoosB09FcxRRYDp6K5igUWA6eiuYoosB09FcxRRYDp6K5mkosB09FcxRRYDp6K5iiiwHT0VzFFFg |
| | | OnormKKLAf/Z |
| | | </value> |
| | | </data> |
| | | <data name="dc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHXSURBVDhPjZJNSBtRFIUH3Ke4aiHVTRd2V7B7EXGhriyu |
| | | ao0ImqppU39qSFVMtVZLrfQXFMlKFy4KbaXQTao7Cd1U3VSyFFQIqNXYZDKZTHJ8976ZTEZD6AcnL+/e |
| | | e857A08p5uX7MEgv3i4h9GYRE3MLJUW9sdlPMG0SKhCvP4Z5/R8cIVYA0dk/AkOsKT1fUmpWzvkCz+2A |
| | | 4PQ7WRW0tnvR5unFvQ7vFVH9fvdjdPYNoccftANGJufZbOTyvJZjdOaD8/uJ4dAcNzO6ga3dPezEbNFe |
| | | zxrQMvLuNGvabAbHXnFT1XToRo5vYilr5GWALgNo1rTZPHk2zc1UWsfm711Et2MFxY9OuVeMabN5FJji |
| | | RiKlQc0YSGdzBRGKR3HqMn1PQzx4ltQQ2dzCenQH+/FjrhFkEr+skgEPB8d58ORcxT/xGUmNXoLzZDLf |
| | | /FLtqJl2RfEOjLLhOKFi7WcU3zd+8d4yWrr9zY2ayC3+zwFd4kE86PajyxcQRSD+N8khJ4k0762AiuVK |
| | | uFZcuLHqgvvzNVz/WikDOnr8oKdDAXTpg6NzHJoilCYxVC9Pa/1Th9ofbmlsFGoWamnzFE4vh3WTO5Eq |
| | | GVBMzd06lBMH0E0aik5mFOUC7257TWMZuJgAAAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="yl.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | |
| | | //////////////////////////////////////////////////////////////////////8A |
| | | </value> |
| | | </data> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>266, 21</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>42</value> |
| | | </metadata> |
| | | </root> |
| | |
| | | public string ViewName = "h_v_KF_ICInventoryList_WMS"; |
| | | public string ModCaption = "æ¡ç åºåæ¥è¯¢"; |
| | | public const string ModName = "3302"; |
| | | public const string ModRightName = "Gy_BarCodeBillList"; |
| | | //public const string ModRightNameEdit = ModRightName + "_Edit"; |
| | | //public const string ModRightNameCheck = ModRightName + "_Check"; |
| | | //public const string ModRightNameClose = ModRightName + "_Close"; |
| | | public const string ModRightNameDelete = ModRightName + "_Delete"; |
| | | public const string ModRightNamePrint = ModRightName + "_Print"; |
| | | //DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | //public Gy_ICBomBill oFrm; |
| | | public string sDlgWhere = ""; //å¤çªä½éå
¥ |
| | | public int selectRow = 0; |
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); |
| | | // |
| | | |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | | private void Kf_ICInventory_BarCode_Load(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | this.Text = ModCaption; |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | lblCaption.Text = ModCaption; |
| | | initGrid(); |
| | | } |
| | | |
| | | private void initGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.initGridList(grdMain,this.Name); |
| | | |
| | | DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name); |
| | | grdMain.ReadOnly = false; |
| | | } |
| | | // |
| | | |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = false; |
| | | initGrid(); |
| | | } |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | timer2.Enabled = false; |
| | | if (sDlgWhere == "") |
| | | { |
| | | } |
| | | else |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | GraphicsGrid(); |
| | | } |
| | | |
| | | private void GraphicsGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | //å计 new |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | |
| | | private void GraphLine() |
| | | { |
| | | //int MainIDCol = Fun_GetCol("hmainid"); |
| | | //int SubIDCol = Fun_GetCol("hsubid"); |
| | | //string s = frmCondition.cmbHComplete.Text; |
| | | //long n=0; |
| | | //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s,ref n); |
| | | ////æ¾ç¤º |
| | | //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; |
| | | //lbljl.Text = "å
±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; |
| | | } |
| | | |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | |
| | | private void grdMain_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) |
| | | { |
| | | int sHQtyCol = Fun_GetCol("æ°é"); |
| | | int i = grdMain.CurrentCell.ColumnIndex; |
| | | if (i != sHQtyCol) |
| | | { |
| | | e.Cancel = true; |
| | | } |
| | | } |
| | | |
| | | //ä¿åå宽 |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | //é»è®¤å宽 |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region æ¥è¯¢åè½ |
| | | |
| | | //æ¥è¯¢ |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | Display(); |
| | | } |
| | | } |
| | | |
| | | public void SetCondition(frmBillQueryCondition_New frmCondition, string ViewName, string Name) |
| | | { |
| | | frmCondition.Tag = ""; |
| | | frmCondition.ViewName = ViewName; |
| | | frmCondition.ModName = Name; |
| | | } |
| | | |
| | | private void Display() |
| | | { |
| | |
| | | //å»ç» |
| | | int FrCol = DBUtility.ClsPub.isInt(frmCondition.txtFrozenCol.Text); |
| | | string s = frmCondition.cmbHComplete.Text; |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s,FrCol); |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | //ç»çº¿ |
| | | GraphLine(); |
| | | |
| | | |
| | | Total(); |
| | | // |
| | | } |
| | | // |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = false; |
| | | initGrid(); |
| | | //Sub_FastQuery(); |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | this.Close(); |
| | | } |
| | | |
| | | private void sx_Click(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void dj_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_ShowBill(); |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | private void Sub_ShowBill() |
| | | { |
| | | //Int64 lngBillKey = 0; |
| | | //if (grdMain.CurrentRow == null) |
| | | // return; |
| | | //lngBillKey =DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value); |
| | | //if (lngBillKey == 0) |
| | | // return; |
| | | //DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | //if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | //{ |
| | | // oFrm = new Gy_ICBomBill(); |
| | | // oFrm.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_View; |
| | | // oFrm.BillOld = oBill; |
| | | // oFrm.ShowDialog(); |
| | | // if (oFrm.BillChange) |
| | | // { |
| | | // if (MessageBox.Show("åæ®å表已ç»åçåå,æ¯å¦å·æ°", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) |
| | | // { |
| | | // timer1.Enabled = true; |
| | | // } |
| | | // } |
| | | //} |
| | | //else |
| | | //{ |
| | | // MessageBox.Show("åæ®æªæ¾å°", "æç¤º"); |
| | | //} |
| | | //oBill = null; |
| | | } |
| | | // |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | // |
| | | private void Kf_ICInventory_BarCode_Load(object sender, EventArgs e) |
| | | { |
| | | // |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | this.Text = ModCaption; |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | lblCaption.Text = ModCaption; |
| | | initGrid(); |
| | | //åå§åå¿«éè¿æ»¤ |
| | | //dtpHBDate.Checked = false; |
| | | //dtpHEDate.Checked = false; |
| | | cmbHStatus.SelectedIndex = 0; |
| | | } |
| | | |
| | | private void grdMain_DblClick(object sender, EventArgs e) |
| | | { |
| | | Sub_ShowBill(); |
| | | } |
| | | |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | Display(); |
| | | //Sub_FastQuery(); |
| | | } |
| | | } |
| | | |
| | | public void SetCondition(frmBillQueryCondition_New frmCondition, string ViewName, string Name) |
| | | { |
| | | frmCondition.Tag = ""; |
| | | frmCondition.ViewName = ViewName; |
| | | frmCondition.ModName = Name; |
| | | } |
| | | |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | // |
| | | //oFrm = new Gy_ICBomBill(); |
| | | //oFrm.ShowDialog(); |
| | | } |
| | | |
| | | private void sc_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_DeleteBill(); |
| | | } |
| | | //å é¤ |
| | | private void Sub_DeleteBill() |
| | | { |
| | | // //ç¼è¾æé |
| | | // if (!DBUtility.ClsPub.Security_Log(ModRightNameEdit, 1, true,DBUtility.ClsPub.CurUserName)) |
| | | // { |
| | | // return; |
| | | // } |
| | | // // |
| | | // Int64 lngBillKey = 0; |
| | | // if (grdMain.CurrentRow == null) |
| | | // return; |
| | | // lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value); |
| | | // if (lngBillKey == 0) |
| | | // return; |
| | | // DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | // if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | // { |
| | | // if (MessageBox.Show("ç¡®å®è¦å é¤å½ååæ®ï¼", "æç¤º", MessageBoxButtons.OKCancel)==DialogResult.OK) |
| | | // { |
| | | // if (oBill.omodel.HChecker != "") |
| | | // { |
| | | // MessageBox.Show("忮已ç»å®¡æ ¸,ä¸è½å é¤ï¼", "æç¤º"); |
| | | // return; |
| | | // } |
| | | // if (!oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | // { |
| | | // MessageBox.Show(DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | // return; |
| | | // } |
| | | // else |
| | | // { |
| | | // Display(); |
| | | // } |
| | | |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // MessageBox.Show("åæ®æªæ¾å°", "æç¤º"); |
| | | // } |
| | | } |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | timer2.Enabled = false; |
| | | if (sDlgWhere == "") |
| | | { |
| | | //frmCondition = new frmBillQueryCondition_New(); |
| | | //SetCondition(frmCondition, ViewName, this.Name); |
| | | //frmCondition.ShowDialog(); |
| | | //if (frmCondition.Tag.ToString() == "OK") |
| | | //{ |
| | | // timer1.Enabled = true; |
| | | //} |
| | | //Sub_FastQuery(); |
| | | } |
| | | else |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | // |
| | | private void GraphLine() |
| | | { |
| | | //int MainIDCol = Fun_GetCol("hmainid"); |
| | | //int SubIDCol = Fun_GetCol("hsubid"); |
| | | //string s = frmCondition.cmbHComplete.Text; |
| | | //long n=0; |
| | | //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s,ref n); |
| | | ////æ¾ç¤º |
| | | //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; |
| | | //lbljl.Text = "å
±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; |
| | | } |
| | | //å®¡æ ¸ |
| | | private void sh_Click(object sender, EventArgs e) |
| | | { |
| | | ////this.Sub_CheckBill(); |
| | | //if (!ClsPub.Security_Log(ModRightNameDelete, 1, true, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //if (grdMain.CurrentRow == null) |
| | | // return; |
| | | //DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl(); |
| | | //if (MessageBox.Show("ç¡®å®è¦åä½åºæéæ¡ç ï¼", "æç¤º", MessageBoxButtons.OKCancel) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("HMaterID")].Value) != 0) |
| | | // { |
| | | // if (!oBar.UnCancelltion(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value))) |
| | | // { |
| | | // MessageBox.Show("åä½åºå¤±è´¥ï¼", "æç¤º"); |
| | | // return; |
| | | // } |
| | | // } |
| | | //} |
| | | //MessageBox.Show("åä½åºæåï¼", "æç¤º"); |
| | | //Sub_FastQuery(); |
| | | } |
| | | |
| | | //å®¡æ ¸åæ® |
| | | private void Sub_CheckBill() |
| | | { |
| | | //å®¡æ ¸æé |
| | | //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true,DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // return; |
| | | //} |
| | | // |
| | | Int64 lngBillKey = 0; |
| | | if (grdMain.CurrentRow == null) |
| | | return; |
| | | lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value); |
| | | if (lngBillKey == 0) |
| | | return; |
| | | DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | //æ¥çæ¯å¦å·²å®¡æ ¸,å
³é,ä½åº |
| | | if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | if (oBill.omodel.HChecker.Trim() != "") |
| | | { |
| | | MessageBox.Show("åæ®å·²å®¡æ ¸!ä¸è½åæ¬¡å®¡æ ¸", "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return; |
| | | } |
| | | //å®¡æ ¸ |
| | | if (oBill.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | MessageBox.Show("å®¡æ ¸æå!", "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("å®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | //å审忮 |
| | | private void Sub_AbandonCheck() |
| | | { |
| | | //å®¡æ ¸æé |
| | | //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true,DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // return; |
| | | //} |
| | | // |
| | | Int64 lngBillKey = 0; |
| | | if (grdMain.CurrentRow == null) |
| | | return; |
| | | lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value); |
| | | if (lngBillKey == 0) |
| | | return; |
| | | DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | //æ¥çæ¯å¦å·²å®¡æ ¸,å
³é,ä½åº |
| | | if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | if (oBill.omodel.HChecker.Trim() == "") |
| | | { |
| | | MessageBox.Show("åæ®æªå®¡æ ¸!ä¸éè¦åå®¡æ ¸!", "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return; |
| | | } |
| | | //åå®¡æ ¸ |
| | | if (oBill.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | MessageBox.Show("åå®¡æ ¸æå!", "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("åå®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | //ä½åº |
| | | private void qsh_Click(object sender, EventArgs e) |
| | | { |
| | | ////Sub_AbandonCheck(); |
| | | //if (!ClsPub.Security_Log(ModRightNameDelete, 1, true, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //if (grdMain.CurrentRow == null) |
| | | // return; |
| | | //DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl(); |
| | | //if (MessageBox.Show("ç¡®å®è¦ä½åºæéæ¡ç ï¼", "æç¤º", MessageBoxButtons.OKCancel) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("HMaterID")].Value) != 0) |
| | | // { |
| | | // if (!oBar.Cancelltion(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value))) |
| | | // { |
| | | // MessageBox.Show("ä½åºå¤±è´¥ï¼", "æç¤º"); |
| | | // return; |
| | | // } |
| | | // } |
| | | //} |
| | | //MessageBox.Show("ä½åºæåï¼", "æç¤º"); |
| | | //Sub_FastQuery(); |
| | | } |
| | | |
| | | private void GraphicsGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | #region //æå°è®¾ç½® |
| | | |
| | | GridppReport Report; |
| | | //é¢è§ |
| | | private void yl_Click(object sender, EventArgs e) |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("æå°æ¬¡æ°")].Value) > 0) |
| | | { |
| | | //夿æé |
| | | if (!ClsPub.Security_Log(ModRightNamePrint, 1, false, DBUtility.ClsPub.CurUserName)) |
| | | { |
| | | MessageBox.Show("æéæ¡ç å·²ç»æå°ï¼æ¨æ²¡ææéï¼ä¸è½é夿å°ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | //éæ©æå°æ¨¡æ¿ |
| | | string sErr = ""; |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | selectRow = i; |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(false); |
| | | //oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value)); |
| | | // |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void Sub_SetReport(string sOpenTmp) |
| | | { |
| | | //å¤æè¡æ° |
| | | // |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord); |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | //å¡«å
¥åæ®è¡¨å¤´ä¿¡æ¯ |
| | | private void ReportBeforePostRecord()//your report?kao |
| | | { |
| | | Report.FieldByName("æ¡ç ç¼å·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | Report.FieldByName("æ°é").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ°é")].Value); |
| | | Report.FieldByName("åä½").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("计éåä½")].Value); |
| | | Report.FieldByName("å
¥åºæ¥æ").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ¥æ")].Value); |
| | | //æå |
| | | Report.FieldByName("客æ·åç§°").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("徿¥åä½")].Value); |
| | | Report.FieldByName("产å代ç ").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("ç©æä»£ç ")].Value); |
| | | Report.FieldByName("产åå¾å·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | Report.FieldByName("产ååç§°").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | Report.FieldByName("å
è£
æ¹å¼").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("å
è£
æ¹å¼")].Value); |
| | | Report.FieldByName("ç产计å").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æºååå·")].Value); |
| | | Report.FieldByName("æåæ¹æ¬¡").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ¹å·")].Value); |
| | | Report.FieldByName("ç产车é´").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("ç产车é´")].Value); |
| | | Report.FieldByName("çäº§å¨æ").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("çäº§å¨æ")].Value); |
| | | //åæ |
| | | Report.FieldByName("ä¾åºååç§°").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("徿¥åä½")].Value); |
| | | Report.FieldByName("ç©æä»£ç ").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("ç©æä»£ç ")].Value); |
| | | Report.FieldByName("çå·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | Report.FieldByName("åå·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | Report.FieldByName("çå·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("çå·")].Value); |
| | | Report.FieldByName("ç©ææ¹æ¬¡").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ¹å·")].Value); |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("å°¾æ°")].Value) == "å°¾æ°") |
| | | { |
| | | Report.FieldByName("å°¾æ°").AsString = "/////////////////////////"; |
| | | } |
| | | else |
| | | { |
| | | Report.FieldByName("å°¾æ°").AsString = ""; |
| | | } |
| | | } |
| | | |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | BLL.Utility.FillRecordToReport(Report, grdMain, grdPrint, Fun_GetCol("æ¡ç ç¼å·")); |
| | | } |
| | | |
| | | #endregion |
| | | // |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | GraphicsGrid(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | //å计 new |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å计 new |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | |
| | | private void dy_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | // |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | selectRow = i; |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.Print(false); |
| | | oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void dy2_Click(object sender, EventArgs e) |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("æå°æ¬¡æ°")].Value) > 0) |
| | | { |
| | | //夿æé |
| | | if (!ClsPub.Security_Log(ModRightNamePrint, 1, false, DBUtility.ClsPub.CurUserName)) |
| | | { |
| | | MessageBox.Show("æéæ¡ç å·²ç»æå°ï¼æ¨æ²¡ææéï¼ä¸è½é夿å°ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | // |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | // |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | selectRow = i; |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.Print(false); |
| | | oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value)); |
| | | // |
| | | //Thread.Sleep(300); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void grdMain_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) |
| | | { |
| | | int sHQtyCol = Fun_GetCol("æ°é"); |
| | | int i = grdMain.CurrentCell.ColumnIndex; |
| | | if (i != sHQtyCol) |
| | | { |
| | | e.Cancel = true; |
| | | } |
| | | } |
| | | #region å¿«éæ¥è¯¢ |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | private void btnOK_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_FastQuery(); |
| | | } |
| | | |
| | | private void Sub_FastQuery() |
| | | { |
| | | string sFastSQL = ""; |
| | | //ç©æ |
| | | //if (cmbHStatus.Text.Trim() == "æ£å¸¸") |
| | | //{ |
| | | // sFastSQL = sFastSQL + " and hstopflag=0 "; |
| | | //} |
| | | //else |
| | | //{ |
| | | // sFastSQL = sFastSQL + " and hstopflag=1 "; |
| | | //} |
| | | //ç©æ |
| | | if (txtHMater.Text.Trim() != "") |
| | | { |
| | |
| | | sDlgWhere = ""; |
| | | } |
| | | |
| | | private void btnOK_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_FastQuery(); |
| | | } |
| | | #endregion |
| | | |
| | | #region 导åºåè½ |
| | | |
| | | //å¼åº |
| | | private void yc_Click(object sender, EventArgs e) |
| | | { |
| | | //BLL.ClsPub_BLL.DataGridViewToExcel2(grdMain, this.Text); |
| | |
| | | } |
| | | } |
| | | |
| | | //å¯¼åº |
| | | private void dc_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region éåºåè½ |
| | | |
| | | //éåºåè½ |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | this.Close(); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region æå°åè½ |
| | | |
| | | GridppReport Report; |
| | | |
| | | //é¢è§ |
| | | private void yl_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | selectRow = i; |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //æå° |
| | | private void dy_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | selectRow = i; |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.Print(false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void Sub_SetReport(string sOpenTmp) |
| | | { |
| | | //å¤æè¡æ° |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord); |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | //å¡«å
¥åæ®è¡¨å¤´ä¿¡æ¯ |
| | | private void ReportBeforePostRecord() |
| | | { |
| | | //Report.FieldByName("æ¡ç ç¼å·").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | } |
| | | |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | BLL.Utility.FillRecordToReport(Report, grdMain, grdPrint, Fun_GetCol("æ¡ç ç¼å·")); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | |
| | | this.lblCaption = new System.Windows.Forms.Label(); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.dy = new System.Windows.Forms.ToolStripButton(); |
| | | this.dy2 = new System.Windows.Forms.ToolStripButton(); |
| | | this.yl = new System.Windows.Forms.ToolStripButton(); |
| | | this.yc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.cx = new System.Windows.Forms.ToolStripButton(); |
| | | this.sx = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.xz = new System.Windows.Forms.ToolStripButton(); |
| | | this.dj = new System.Windows.Forms.ToolStripButton(); |
| | | this.sc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.sh = new System.Windows.Forms.ToolStripButton(); |
| | | this.qsh = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.tc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); |
| | |
| | | this.grdMain = new System.Windows.Forms.DataGridView(); |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.groupBox1 = new System.Windows.Forms.GroupBox(); |
| | | this.cmbHStatus = new System.Windows.Forms.ComboBox(); |
| | | this.label5 = new System.Windows.Forms.Label(); |
| | | this.txtHSPName = new System.Windows.Forms.TextBox(); |
| | | this.label3 = new System.Windows.Forms.Label(); |
| | | this.txtHWHName = new System.Windows.Forms.TextBox(); |
| | |
| | | this.label1 = new System.Windows.Forms.Label(); |
| | | this.btnOK = new System.Windows.Forms.Button(); |
| | | this.grdSum = new System.Windows.Forms.DataGridView(); |
| | | this.dc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.pPic.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | this.Tool.SuspendLayout(); |
| | |
| | | this.pPic.BackColor = System.Drawing.Color.White; |
| | | this.pPic.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pPic.BackgroundImage"))); |
| | | this.pPic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; |
| | | this.pPic.Controls.Add(this.cmbHStatus); |
| | | this.pPic.Controls.Add(this.label5); |
| | | this.pPic.Controls.Add(this.panel1); |
| | | this.pPic.Controls.Add(this.lblCaption); |
| | | this.pPic.Dock = System.Windows.Forms.DockStyle.Top; |
| | |
| | | this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); |
| | | this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
| | | this.dy, |
| | | this.dy2, |
| | | this.yl, |
| | | this.toolStripSeparator1, |
| | | this.dc, |
| | | this.yc, |
| | | this.toolStripSeparator2, |
| | | this.cx, |
| | | this.sx, |
| | | this.toolStripSeparator1, |
| | | this.xz, |
| | | this.dj, |
| | | this.sc, |
| | | this.toolStripSeparator5, |
| | | this.sh, |
| | | this.qsh, |
| | | this.toolStripSeparator4, |
| | | this.tc, |
| | | this.toolStripSeparator3, |
| | |
| | | this.dy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dy.Visible = false; |
| | | this.dy.Click += new System.EventHandler(this.dy_Click); |
| | | // |
| | | // dy2 |
| | | // |
| | | this.dy2.AutoSize = false; |
| | | this.dy2.Image = ((System.Drawing.Image)(resources.GetObject("dy2.Image"))); |
| | | this.dy2.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dy2.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dy2.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.dy2.Name = "dy2"; |
| | | this.dy2.Size = new System.Drawing.Size(36, 47); |
| | | this.dy2.Text = "è¿æ"; |
| | | this.dy2.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dy2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dy2.Visible = false; |
| | | this.dy2.Click += new System.EventHandler(this.dy2_Click); |
| | | // |
| | | // yl |
| | | // |
| | |
| | | this.cx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.cx.Click += new System.EventHandler(this.cx_Click); |
| | | // |
| | | // sx |
| | | // |
| | | this.sx.AutoSize = false; |
| | | this.sx.Image = ((System.Drawing.Image)(resources.GetObject("sx.Image"))); |
| | | this.sx.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sx.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.sx.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.sx.Name = "sx"; |
| | | this.sx.Size = new System.Drawing.Size(36, 47); |
| | | this.sx.Text = "å·æ°"; |
| | | this.sx.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.sx.Click += new System.EventHandler(this.sx_Click); |
| | | // |
| | | // toolStripSeparator1 |
| | | // |
| | | this.toolStripSeparator1.Name = "toolStripSeparator1"; |
| | | this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50); |
| | | this.toolStripSeparator1.Visible = false; |
| | | // |
| | | // xz |
| | | // |
| | | this.xz.AutoSize = false; |
| | | this.xz.Image = ((System.Drawing.Image)(resources.GetObject("xz.Image"))); |
| | | this.xz.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.xz.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.xz.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.xz.Name = "xz"; |
| | | this.xz.Size = new System.Drawing.Size(36, 47); |
| | | this.xz.Text = "æ°å¢"; |
| | | this.xz.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.xz.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.xz.Visible = false; |
| | | this.xz.Click += new System.EventHandler(this.xz_Click); |
| | | // |
| | | // dj |
| | | // |
| | | this.dj.AutoSize = false; |
| | | this.dj.Image = ((System.Drawing.Image)(resources.GetObject("dj.Image"))); |
| | | this.dj.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dj.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dj.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.dj.Name = "dj"; |
| | | this.dj.Size = new System.Drawing.Size(36, 47); |
| | | this.dj.Text = "åæ®"; |
| | | this.dj.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dj.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dj.Visible = false; |
| | | this.dj.Click += new System.EventHandler(this.dj_Click); |
| | | // |
| | | // sc |
| | | // |
| | | this.sc.AutoSize = false; |
| | | this.sc.Image = ((System.Drawing.Image)(resources.GetObject("sc.Image"))); |
| | | this.sc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.sc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.sc.Name = "sc"; |
| | | this.sc.Size = new System.Drawing.Size(36, 47); |
| | | this.sc.Text = "å é¤"; |
| | | this.sc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.sc.Visible = false; |
| | | this.sc.Click += new System.EventHandler(this.sc_Click); |
| | | // |
| | | // toolStripSeparator5 |
| | | // |
| | | this.toolStripSeparator5.Name = "toolStripSeparator5"; |
| | | this.toolStripSeparator5.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // sh |
| | | // |
| | | this.sh.AutoSize = false; |
| | | this.sh.Image = ((System.Drawing.Image)(resources.GetObject("sh.Image"))); |
| | | this.sh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.sh.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.sh.Name = "sh"; |
| | | this.sh.Size = new System.Drawing.Size(40, 47); |
| | | this.sh.Text = "åä½åº"; |
| | | this.sh.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sh.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.sh.Visible = false; |
| | | this.sh.Click += new System.EventHandler(this.sh_Click); |
| | | // |
| | | // qsh |
| | | // |
| | | this.qsh.AutoSize = false; |
| | | this.qsh.Image = ((System.Drawing.Image)(resources.GetObject("qsh.Image"))); |
| | | this.qsh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.qsh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.qsh.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.qsh.Name = "qsh"; |
| | | this.qsh.Size = new System.Drawing.Size(36, 47); |
| | | this.qsh.Text = "ä½åº"; |
| | | this.qsh.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.qsh.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.qsh.Visible = false; |
| | | this.qsh.Click += new System.EventHandler(this.qsh_Click); |
| | | // |
| | | // toolStripSeparator4 |
| | | // |
| | | this.toolStripSeparator4.Name = "toolStripSeparator4"; |
| | | this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50); |
| | | this.toolStripSeparator4.Visible = false; |
| | | // |
| | | // tc |
| | | // |
| | |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.Size = new System.Drawing.Size(1011, 382); |
| | | this.grdMain.TabIndex = 19; |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit); |
| | | this.grdMain.DoubleClick += new System.EventHandler(this.grdMain_DblClick); |
| | | this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint); |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); |
| | | this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint); |
| | | // |
| | | // grdPrint |
| | | // |
| | |
| | | this.groupBox1.TabIndex = 51; |
| | | this.groupBox1.TabStop = false; |
| | | // |
| | | // cmbHStatus |
| | | // |
| | | this.cmbHStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
| | | this.cmbHStatus.FormattingEnabled = true; |
| | | this.cmbHStatus.Items.AddRange(new object[] { |
| | | "æ£å¸¸", |
| | | "ä½åº"}); |
| | | this.cmbHStatus.Location = new System.Drawing.Point(265, 7); |
| | | this.cmbHStatus.Name = "cmbHStatus"; |
| | | this.cmbHStatus.Size = new System.Drawing.Size(68, 20); |
| | | this.cmbHStatus.TabIndex = 20; |
| | | this.cmbHStatus.Visible = false; |
| | | // |
| | | // label5 |
| | | // |
| | | this.label5.AutoSize = true; |
| | | this.label5.Location = new System.Drawing.Point(230, 11); |
| | | this.label5.Name = "label5"; |
| | | this.label5.Size = new System.Drawing.Size(41, 12); |
| | | this.label5.TabIndex = 19; |
| | | this.label5.Text = "ç¶æï¼"; |
| | | this.label5.Visible = false; |
| | | // |
| | | // txtHSPName |
| | | // |
| | | this.txtHSPName.Location = new System.Drawing.Point(745, 13); |
| | | this.txtHSPName.Location = new System.Drawing.Point(743, 14); |
| | | this.txtHSPName.Name = "txtHSPName"; |
| | | this.txtHSPName.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHSPName.TabIndex = 18; |
| | |
| | | // |
| | | // txtHWHName |
| | | // |
| | | this.txtHWHName.Location = new System.Drawing.Point(572, 13); |
| | | this.txtHWHName.Location = new System.Drawing.Point(571, 14); |
| | | this.txtHWHName.Name = "txtHWHName"; |
| | | this.txtHWHName.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHWHName.TabIndex = 16; |
| | |
| | | // label2 |
| | | // |
| | | this.label2.AutoSize = true; |
| | | this.label2.Location = new System.Drawing.Point(530, 18); |
| | | this.label2.Location = new System.Drawing.Point(531, 18); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(47, 12); |
| | | this.label2.TabIndex = 15; |
| | |
| | | // label6 |
| | | // |
| | | this.label6.AutoSize = true; |
| | | this.label6.Location = new System.Drawing.Point(357, 19); |
| | | this.label6.Location = new System.Drawing.Point(359, 18); |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(47, 12); |
| | | this.label6.TabIndex = 13; |
| | |
| | | // label4 |
| | | // |
| | | this.label4.AutoSize = true; |
| | | this.label4.Location = new System.Drawing.Point(13, 19); |
| | | this.label4.Location = new System.Drawing.Point(15, 18); |
| | | this.label4.Name = "label4"; |
| | | this.label4.Size = new System.Drawing.Size(47, 12); |
| | | this.label4.TabIndex = 11; |
| | |
| | | // |
| | | // txtHBatchNo |
| | | // |
| | | this.txtHBatchNo.Location = new System.Drawing.Point(227, 13); |
| | | this.txtHBatchNo.Location = new System.Drawing.Point(227, 14); |
| | | this.txtHBatchNo.Name = "txtHBatchNo"; |
| | | this.txtHBatchNo.Size = new System.Drawing.Size(130, 21); |
| | | this.txtHBatchNo.TabIndex = 1; |
| | |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.Location = new System.Drawing.Point(187, 19); |
| | | this.label1.Location = new System.Drawing.Point(187, 18); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(47, 12); |
| | | this.label1.TabIndex = 0; |
| | |
| | | // |
| | | // btnOK |
| | | // |
| | | this.btnOK.Location = new System.Drawing.Point(877, 13); |
| | | this.btnOK.Location = new System.Drawing.Point(880, 13); |
| | | this.btnOK.Name = "btnOK"; |
| | | this.btnOK.Size = new System.Drawing.Size(73, 24); |
| | | this.btnOK.TabIndex = 6; |
| | |
| | | this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; |
| | | this.grdSum.Size = new System.Drawing.Size(1011, 19); |
| | | this.grdSum.TabIndex = 52; |
| | | // |
| | | // dc |
| | | // |
| | | this.dc.AutoSize = false; |
| | | this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image"))); |
| | | this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.dc.Name = "dc"; |
| | | this.dc.Size = new System.Drawing.Size(36, 47); |
| | | this.dc.Text = "导åº"; |
| | | this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dc.ToolTipText = "导åº"; |
| | | this.dc.Click += new System.EventHandler(this.dc_Click); |
| | | // |
| | | // toolStripSeparator1 |
| | | // |
| | | this.toolStripSeparator1.Name = "toolStripSeparator1"; |
| | | this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50); |
| | | this.toolStripSeparator1.Visible = false; |
| | | // |
| | | // Kf_ICInventory_BarCode |
| | | // |
| | |
| | | private System.Windows.Forms.ToolStripButton yl; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; |
| | | private System.Windows.Forms.ToolStripButton cx; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; |
| | | private System.Windows.Forms.ToolStripButton tc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; |
| | | public System.Windows.Forms.Timer timer1; |
| | | private System.Windows.Forms.ToolStripButton sx; |
| | | private System.Windows.Forms.ToolStripButton dj; |
| | | private System.Windows.Forms.ToolStripButton xz; |
| | | private System.Windows.Forms.ToolStripButton sc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; |
| | | private System.Windows.Forms.Timer timer2; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; |
| | |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; |
| | | private System.Windows.Forms.ToolStripButton bclk; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; |
| | | private System.Windows.Forms.ToolStripButton sh; |
| | | private System.Windows.Forms.ToolStripButton qsh; |
| | | private System.Windows.Forms.DataGridView grdMain; |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Label lbljl; |
| | | private System.Windows.Forms.Label lbldj; |
| | | private System.Windows.Forms.DataGridView grdPrint; |
| | | private System.Windows.Forms.ToolStripButton dy; |
| | | private System.Windows.Forms.ToolStripButton dy2; |
| | | private System.Windows.Forms.GroupBox groupBox1; |
| | | private System.Windows.Forms.Button btnOK; |
| | | private System.Windows.Forms.TextBox txtHBatchNo; |
| | |
| | | private System.Windows.Forms.Label label3; |
| | | private System.Windows.Forms.TextBox txtHWHName; |
| | | private System.Windows.Forms.Label label2; |
| | | private System.Windows.Forms.ComboBox cmbHStatus; |
| | | private System.Windows.Forms.Label label5; |
| | | private System.Windows.Forms.ToolStripButton yc; |
| | | private System.Windows.Forms.DataGridView grdSum; |
| | | private System.Windows.Forms.ToolStripButton dc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; |
| | | } |
| | | } |
| | |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="pPic.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | Qk22QAMAAAAAADYAAAAoAAAAFQMAAFoAAAABABgAAAAAAAAAAADDDgAAww4AAAAAAAAAAAAA//////// |
| | |
| | | //////////////////////////////////////////////////////////////////////8A |
| | | </value> |
| | | </data> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <data name="Tool.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | |
| | | u3/Bo2wICEG/Oo9XdCIYwhNr8dl8ZRwfdQAAAABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | <data name="dy2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADmSURBVDhPlY6xDYMwFES9U3bKCmzACEh0FJmACRiAnoqK |
| | | jo6OzvH7yVk/OFHg0MnC/vfuhzOq6zrK76vzIrRtm3nf92sgBpdlieu6ZgCe5xmAXEot0zTZMABBXLiU |
| | | grRUVRWHYTATYpOfYR9kiGbMnQelUTu5wzmsoDWk796GOI6jGRDDzH0BxAyQ1Z5e4xhuGUSQWbkAaE2B |
| | | FMRN05h9uAD4JoHato1d9yjCOjOAH9Y+QggDOW5gwZdfEgR7iAf4YG53yq0eBADzjlWk/+QP2WXf9xmk |
| | | u3/Bo2wICEG/Oo9XdCIYwhNr8dl8ZRwfdQAAAABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | <data name="yl.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | |
| | | NghoSgE55YDvFRCSSahvgMM34El8YX+8JjAyrka/Yhh9iiHJcuA49IxA4BquF+DsG3hoFGiKwsP+4ioN |
| | | BMV7oHO6NqcawJG+u/2IXN1kL/JBgsgOwZ6up82IDNUgQdhDwF12GKDQCLXjQAVC/gBsYdYbXS03WwAA |
| | | AABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | <data name="dc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHXSURBVDhPjZJNSBtRFIUH3Ke4aiHVTRd2V7B7EXGhriyu |
| | | ao0ImqppU39qSFVMtVZLrfQXFMlKFy4KbaXQTao7Cd1U3VSyFFQIqNXYZDKZTHJ8976ZTEZD6AcnL+/e |
| | | e857A08p5uX7MEgv3i4h9GYRE3MLJUW9sdlPMG0SKhCvP4Z5/R8cIVYA0dk/AkOsKT1fUmpWzvkCz+2A |
| | | 4PQ7WRW0tnvR5unFvQ7vFVH9fvdjdPYNoccftANGJufZbOTyvJZjdOaD8/uJ4dAcNzO6ga3dPezEbNFe |
| | | zxrQMvLuNGvabAbHXnFT1XToRo5vYilr5GWALgNo1rTZPHk2zc1UWsfm711Et2MFxY9OuVeMabN5FJji |
| | | RiKlQc0YSGdzBRGKR3HqMn1PQzx4ltQQ2dzCenQH+/FjrhFkEr+skgEPB8d58ORcxT/xGUmNXoLzZDLf |
| | | /FLtqJl2RfEOjLLhOKFi7WcU3zd+8d4yWrr9zY2ayC3+zwFd4kE86PajyxcQRSD+N8khJ4k0762AiuVK |
| | | uFZcuLHqgvvzNVz/WikDOnr8oKdDAXTpg6NzHJoilCYxVC9Pa/1Th9ofbmlsFGoWamnzFE4vh3WTO5Eq |
| | | GVBMzd06lBMH0E0aik5mFOUC7257TWMZuJgAAAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="yc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | |
| | | oXs9qiieYFzuPSiSvmMYkef5B9h5hyvM1NoFGlmIXFPo6IWcJv9h5clA7oepFQ4HHLTFi7svsPoMG2+Q |
| | | UtDPT4GC2XgTpCe5X/YktlNs733486C5AJ9FHdrrRaLxARuoscFuuEjwX1RQNqzRzWXDfhTy670qMY7z |
| | | BdYeeKA8svstAAAAAElFTkSuQmCC |
| | | </value> |
| | | </data> |
| | | <data name="sx.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHXSURBVDhPjZJNSBtRFIUH3Ke4aiHVTRd2V7B7EXGhriyu |
| | | ao0ImqppU39qSFVMtVZLrfQXFMlKFy4KbaXQTao7Cd1U3VSyFFQIqNXYZDKZTHJ8976ZTEZD6AcnL+/e |
| | | e857A08p5uX7MEgv3i4h9GYRE3MLJUW9sdlPMG0SKhCvP4Z5/R8cIVYA0dk/AkOsKT1fUmpWzvkCz+2A |
| | | 4PQ7WRW0tnvR5unFvQ7vFVH9fvdjdPYNoccftANGJufZbOTyvJZjdOaD8/uJ4dAcNzO6ga3dPezEbNFe |
| | | zxrQMvLuNGvabAbHXnFT1XToRo5vYilr5GWALgNo1rTZPHk2zc1UWsfm711Et2MFxY9OuVeMabN5FJji |
| | | RiKlQc0YSGdzBRGKR3HqMn1PQzx4ltQQ2dzCenQH+/FjrhFkEr+skgEPB8d58ORcxT/xGUmNXoLzZDLf |
| | | /FLtqJl2RfEOjLLhOKFi7WcU3zd+8d4yWrr9zY2ayC3+zwFd4kE86PajyxcQRSD+N8khJ4k0762AiuVK |
| | | uFZcuLHqgvvzNVz/WikDOnr8oKdDAXTpg6NzHJoilCYxVC9Pa/1Th9ofbmlsFGoWamnzFE4vh3WTO5Eq |
| | | GVBMzd06lBMH0E0aik5mFOUC7257TWMZuJgAAAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="xz.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGySURBVDhPhZLNKwRxGMefUlLc5D9wUE5eolyUo5PkomhJ |
| | | ybZE5D2ippYty7Ic1NgclOLiqhAlym44yF3JuzW7s2tedvcxzzO7jbWDT337PfN7nu935vdrYH51EwXf |
| | | BgpLor18Is75A+gP7CDYMetdx/9Y9l3wahsy7VnjZiqVshXh9Z7xSuSETLpXuJFIJm1FLC6e85ohK2Rc |
| | | WOJNTU/Yir5B3DjEptZObGnrxv2DY57PACOzC1woqm4rVdMxaaRIchzfwhLPhioL8bQYuIbBaQ8XcUX7 |
| | | U5njFPWGMF5qmIOIl3UlCAOTbm5E4yrKv0jTLfPWrcw1hZyXAELfmMAbHzEFJRupxj0QBc4gm681xAr/ |
| | | nRXgGp7hgffIJ4aj2VI005zvvMoyg2icvXqTe9AzOMXFq2RcUsSSYlwekee6+dVMQHf/BBfP4Ri+fFgi |
| | | Vhzwt5no6h3lh8e3KD69yyy6dYIC8KI5x3x0cmb9SB3OId68f5Hw/jXCItisPSCqVxzy/c3kSduNgB4z |
| | | 4CeZgPY6YH2HPGk7QGOLA8trG7C8xhJRVlVvhqTZ3t0z+8YseUw3wBfmDAtHelBh/AAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="dj.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD3SURBVDhPnZC9FYIwFEaZiQFkAB1ADzULZACGoJLKSio7 |
| | | BqCzorNiABgABnjme+GFBPlR3znfSUJy7yMJdorG0S2KY1r6/lE0PBMcdA8z3NZEd9VtSmiolU7iSjwY |
| | | CcNyUUL0UhzMIcK4An8IPFjGr2F0s3CTmrFOLbgN67vK79LQsOCqQhaIxIE9AfXVxT4Wwzp1NsGYQ4b9 |
| | | tjhSe4smiVKma19NL+4KBEQA85hH1OQH+T6T6MgagaArThys0V3g8ZwpgbryzBuIXAfB3iosZSUP3VEH |
| | | cx82d1+EpURiHmu8817neYkEHQH+BEtZSfYHLCWSdTgI3vBtcjUXOHiVAAAAAElFTkSuQmCC |
| | | </value> |
| | | </data> |
| | | <data name="sc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG5SURBVDhPlZDrK4NhGMafP8BHf4BPwkfmq8NnvhKlUHxw |
| | | iEgSIsQKqcVyPjQ2Z9mS0ooSlqElQ07RaGRib6zmeHmf27O3zSZcdbXnfp77+r33PRZKZdXN8Le4/pt4 |
| | | wO15g0vykvn5V4j/1/5iEfsSv/iPbPbjQAgvHp5ecXrlwv6ZE7bDC1h2j7BitWNpzYZ5swUG0zL6Jxag |
| | | GZxCe68+GFBe14rjkzOMjs9iSD+DPt0ktAN6dHQPQ63pR0N7N+pbtdBNL6KmRRNijVo1jWexHcLjfcbN |
| | | gwcDBhOOzp0wW+zoGpmG0bxBE1U2tAX/ocWVjQRY27JDenzClUtC39g8Dk4dcFzf0RuXw+nC+uZOMKCg |
| | | vI4avgPupUfg4wPWaEb2yVeLOGN5JVX08B3ARcFt+SBbAfnVBMgprKDmUIBOJgeaIr4sgr6avxEgK7+U |
| | | mkOuIIsgxeEBVsJcGblF1PgTgMZODQuwMj5XenYBNa5a9+CWAZe3bvTo5uhO2Zn/xgmLOwWSKSbg8r4D |
| | | 954XXNxIVNP4IszPVAtIwBrJKWmIjE1AlCoR0aokxMQnYWLGqEAoKIv3+mrGGPsEfOpdAqh7YNYAAAAA |
| | | SUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="sh.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGgSURBVDhPlZPPK8NhHMc/5T7tRM0cOCAHJXGbxQ7c/AEc |
| | | d1EcjEwytSiH4SZcRHLQ7FemtlJDOPiZml8XSzMWMz9mK7Xevs/z7DvDzLzr9X2253k+r8+nvn0pM10t |
| | | hGykjnMndRE1ZWJlVKvF+qdErytIF/1G6k72sMPTBULIRcCF4H2bcOMknC8SNsb/IXheJ8R8hAfPPwUH |
| | | M4Qz6fKVlXBtJwRWxP99aX/NnKfgcJZwMkfwS9OwdW86TwFLc6MGmxPE2Zok+CwCzwjB5XDkLpbDJHYj |
| | | cax9ArbHDzukt5HJ9wxbpuGe7+fvvL1esLU6BTmsSHpyfggGRiaxe3yJaJzfhbI/wGHJ7MqKS1ZKv+xx |
| | | gWFoDDtH57h7jCGeSGDQHoTJGUwL5M6MSrsKFd5y/jst6DaapQkuEI6+4eU1hoZRP4dFFhTMK6FYUKB4 |
| | | SQHVciGKbMpPQafBxAWhiDRBPA7S73O4gH0HWtGtza9BrVslCnUSrSmBPAET3Eee0GO9Ra8tjGQyySUs |
| | | 8iQ1XvVn58xU1WnxG1zAJmn61pmIPgBiIY95z/CSIgAAAABJRU5ErkJggg== |
| | | </value> |
| | | </data> |
| | | <data name="qsh.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGPSURBVDhPlZLLK0RhGMbfsrVRtkp2k4UFsUOxsPAn2NoI |
| | | C0MzEmpQFi4LpWEjUhaGMYqyUINQjEtqGEqkcZkY4zLO1CGP73vPN2cujdtTv97vPd/7PL2ncyhZTTWE |
| | | TKjrn6UGUVRgVElhnlF/DamvzjJN36FmMkteHk8RbhYJODXQNwnXHkJgmrA2+I+A51VC1Et4WPlnwN4Y |
| | | 4UQMX7gIV27C5ZzR+8TzZccfA/bHCUcTBL/YRtZd5x8DpKoqyrE+RMzGMME7YHDlG4WUGvtZMsRtJ8bV |
| | | RjjfEubPT+xYiFFjlN6zugecWJq08TevKzWQkoPwiYMgbkzu2dzeO4ztwzNENPYgx3bJSI2IfwA9+QbK |
| | | GO/lHQdYO/uxdRDA3WMUWiyGDncQXZ4g3j8+EiGNuSmYZqlmu0NscIpQ5A0vr1GU9fkZXdc5gNeuzU7B |
| | | XF+qwdrFATdhsYGmgep9jGmWR1mLFeqZGRLfQAbch5/Q4rpF63yIA3h9ZZZn7lVIymtYSiqRzszsghmS |
| | | PJzoib4AQHWvuebaS2wAAAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | |
| | | AAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>102, 16</value> |
| | | </metadata> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>191, 16</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>37</value> |
| | | </metadata> |
| | | </root> |
| | |
| | | private void Sub_AddBillTypeList() |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DataSet ds = oCn.RunProcReturn("exec h_p_WMS_BarCodeStatusQuery_BillType ", "h_p_WMS_BarCodeStatusQuery_BillType"); |
| | | DataSet ds = oCn.RunProcReturn("exec h_p_WMS_BarCodeReport_BillType ", "h_p_WMS_BarCodeReport_BillType"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("è·ååæ®ç±»å失败"); |
| | |
| | | bool HEndFlag = list[0].HEndFlag; |
| | | |
| | | //夿æé |
| | | if (!ClsPub.Security_Log(msg4, 1, false, msg3)) |
| | | if (!DBUtility.ClsPub.Security_Log(msg4, 1, false, msg3)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ²¡ææ¾å°è¯¥åè½æ¨¡åï¼"; |
| | | objJsonResult.Message = "没æä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | string HUseFlag = list[0].HUseFlag; |
| | | |
| | | //夿æé |
| | | if (!ClsPub.Security_Log(msg5, 1, false, msg4)) |
| | | if (!DBUtility.ClsPub.Security_Log(msg5, 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ²¡ææ¾å°è¯¥åè½æ¨¡åï¼"; |
| | | objJsonResult.Message = "没æä¿åæé"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | } |
| | | #endregion |
| | | |
| | | //#region [模å
·åç±»å®¡æ ¸ãåå®¡æ ¸] |
| | | //[Route("Gy_ModelType/ModelTypeCheck")] |
| | | //[HttpGet] |
| | | //public object ModelTypeCheck(int HInterID, int IsAudit, string CurUserName) |
| | | //{ |
| | | // string ModRightNameCheck = "Gy_MouldType_Check"; |
| | | // DBUtility.ClsPub.CurUserName = CurUserName; |
| | | // try |
| | | // { |
| | | // //å®¡æ ¸æé |
| | | // if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // if (HInterID <= 0) |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "HInterIDå°äº0ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // Int64 lngBillKey = 0; |
| | | // lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | // ds = oCN.RunProcReturn("Select * from Gy_MouldType Where HItemID=" + lngBillKey.ToString(), "Gy_MouldType"); |
| | | // if (ds.Tables[0].Rows.Count != 0) |
| | | // { |
| | | // string HCloseMan = ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim(); |
| | | // string HDeleteMan = ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim(); |
| | | // string HChecker = ds.Tables[0].Rows[0]["HChecker"].ToString().Trim(); |
| | | // if (HCloseMan.Trim() != "") |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "忮已å
³é!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // if (HDeleteMan.Trim() != "") |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "忮已ä½åº!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // if (IsAudit == 0) //å®¡æ ¸å¤æ |
| | | // { |
| | | // if (HChecker.Trim() != "") |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // } |
| | | // if (IsAudit == 1) //åå®¡æ ¸å¤æ |
| | | // { |
| | | // if (HChecker.Trim() == "") |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸éè¦åå®¡æ ¸!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // } |
| | | // } |
| | | // else |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | |
| | | // if (IsAudit == 0) //å®¡æ ¸æäº¤ |
| | | // { |
| | | // //å®¡æ ¸æäº¤ |
| | | // if (CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | // { |
| | | // objJsonResult.code = "1"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "å®¡æ ¸æå"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // else |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // } |
| | | // if (IsAudit == 1) //åå®¡æ ¸æäº¤ |
| | | // { |
| | | // //åå®¡æ ¸æäº¤AbandonCheck |
| | | // if (AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | // { |
| | | // objJsonResult.code = "1"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "åå®¡æ ¸æå"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // else |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // } |
| | | // return objJsonResult; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å®¡æ ¸å¤±è´¥æè
åå®¡æ ¸å¤±è´¥ï¼" + e.ToString(); |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | //} |
| | | |
| | | ////å®¡æ ¸ |
| | | //public bool CheckBill(Int64 lngBillKey, ref string sReturn) |
| | | //{ |
| | | // //模å
·æ¡£æ¡ææ¡ä¾ |
| | | // try |
| | | // { |
| | | // string HChecker = DBUtility.ClsPub.CurUserName; |
| | | // string HCheckDate = DBUtility.ClsPub.GetServerDate(-1); |
| | | // oCN.BeginTran(); |
| | | // oCN.RunProc(" Update " + MvarItemKey + " set HBillStatus='2',HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "' Where HInterID=" + lngBillKey.ToString()); |
| | | // oCN.Commit(); |
| | | // //çæè°æ¨å |
| | | // //å¾å°è°æ¨å mainid åæ®å· |
| | | // //long NewInterID = DBUtility.ClsPub.CreateBillID("1207", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | // //string NewBillNo = DBUtility.ClsPub.CreateBillCode("1207", ref DBUtility.ClsPub.sExeReturnInfo, true);//å¾å°æ°åå· |
| | | // //oCn.RunProc("exec h_p_Kf_MoveStockBill_Add " + lngBillKey.ToString() + "," + NewInterID.ToString() + ",'" + NewBillNo + "','" + HChecker + "'"); |
| | | // // |
| | | // sReturn = "å®¡æ ¸åæ®æåï¼"; |
| | | // return true; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // sReturn = e.Message; |
| | | // throw (e); |
| | | // } |
| | | //} |
| | | |
| | | ////åå®¡æ ¸ |
| | | //public bool AbandonCheck(Int64 lngBillKey, ref string sReturn) |
| | | //{ |
| | | |
| | | // try |
| | | // { |
| | | // string HChecker = DBUtility.ClsPub.CurUserName; |
| | | // string HCheckDate = DBUtility.ClsPub.GetServerDate(-1); |
| | | // oCN.BeginTran(); |
| | | // //è¿ååæ®ç¶æä¸ºæªå®¡æ ¸ç¶æ |
| | | // oCN.RunProc(" Update " + MvarItemKey + " set HBillStatus='1',HChecker='',HCheckDate='' Where HInterID=" + lngBillKey.ToString()); |
| | | // sReturn = "åå®¡æ ¸åæ®æåï¼"; |
| | | // oCN.Commit(); |
| | | // return true; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // sReturn = e.Message; |
| | | // throw (e); |
| | | // } |
| | | //} |
| | | //#endregion |
| | | |
| | | } |
| | | } |
| | |
| | | return objJsonResult; |
| | | } |
| | | oCN.BeginTran();//å¼å§äºå¡ |
| | | ds = oCN.RunProcReturn("select * from Gy_RoutingBillSub where HInterID=" + lngBillKey, "Gy_RoutingBillSub"); |
| | | ds = oCN.RunProcReturn("select * from Gy_RoutingBillmain where HInterID=" + lngBillKey, "Gy_RoutingBillmain"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; ; |
| | | } |
| | | //string HChecker = Convert.ToString(ds.Tables[0].Rows[0]["HChecker"]); |
| | | //if (HChecker != " ") |
| | | string HChecker = Convert.ToString(ds.Tables[0].Rows[0]["HChecker"]); |
| | | //string hdeleteman = Convert.ToString(ds.Tables[0].Rows[0]["hdeleteman"]); |
| | | if (HChecker != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已ç»å®¡æ ¸,ä¸è½å é¤ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //if (hdeleteman != "") |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "忮已ç»å®¡æ ¸,ä¸è½å é¤ï¼"; |
| | | // objJsonResult.Message = "忮已ç»ä½åº,ä¸è½å é¤ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | |
| | | #region å¨å
·ä¿å
»è§ç¨åå表 |
| | | [Route("Sc_MouldMaintainRuleBill/GetMouldMaintainRuleList")] |
| | | [HttpGet] |
| | | public object GetMouldMaintainRuleList(string sWhere) |
| | | public object GetMouldMaintainRuleList(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainRuleBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Sc_MouldMaintainRuleBillList " + sWhere + " order by hmainid desc", "h_v_Sc_MouldMaintainRuleBillList"); |
| | |
| | | #region å¨å
·ä¿å
»è§ç¨è®°å½å é¤åè½ |
| | | [Route("Sc_MouldMaintainRuleBill/DeltetMouldMaintainRuleBillList")] |
| | | [HttpGet] |
| | | public object DeltetMouldMaintainRuleBillList(string HInterID) |
| | | public object DeltetMouldMaintainRuleBillList(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainRuleBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | if (lngBillKey == 0) |
| | |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | string msg5 = sArray[2].ToString(); |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainRuleBill_Edit", 1, false, msg5)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsSc_MouldMaintainRuleBill oBill = new DAL.ClsSc_MouldMaintainRuleBill(); |
| | | List<Model.ClsSc_MouldMaintainRuleBillMain> lsmain = new List<Model.ClsSc_MouldMaintainRuleBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | public object set_DeleteBill(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | //if (!DBUtility.ClsPub.Security_Log_second("Sc_MouldRepairChangeBill_Delete", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ å 餿éï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log_second("Sc_MouldRepairChangeBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | string s = ""; |
| | | Int64 lngBillKey = 0; |
| | | try |
| | |
| | | [HttpGet] |
| | | public object set_CheckBill(int HInterID, string CurUserName) |
| | | { |
| | | //string ModRightNameCheck = "Sc_MouldRepairOut_SingleBill_Check"; |
| | | DBUtility.ClsPub.CurUserName = CurUserName; |
| | | DLL.ClsSc_MouldRepairChangeBill oBill = new DLL.ClsSc_MouldRepairChangeBill(); |
| | | try |
| | | { |
| | | ////å®¡æ ¸æé |
| | | //if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log_second("Sc_MouldRepairChangeBill_Check", 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //å®¡æ ¸å夿æ¯å¦å
许 |
| | | string s = ""; |
| | | if (!DBUtility.Xt_BaseBillFun.Fun_AllowCheckBill(oBill, ref s)) |
| | |
| | | using System; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using WebAPI.DLL; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.SBGL |
| | |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | |
| | | ClsSb_EquipRepairSendWorkBillMain omodel = new ClsSb_EquipRepairSendWorkBillMain(); |
| | | List<ClsSb_EquipRepairSendWorkBillSub> DetailColl = new List<ClsSb_EquipRepairSendWorkBillSub>(); |
| | | ClsSb_EquipRepairSendWorkBill oBill = new ClsSb_EquipRepairSendWorkBill(); |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | |
| | | { |
| | | try |
| | | { |
| | | string sql = "select * from h_v_Sb_EquipRepairSendWorkBillList "; |
| | | string sql = "select * from h_v_Sb_EquipRepairSendWorkBillList where 1=1 "; |
| | | if (sWhere == "" || sWhere == null) |
| | | { |
| | | ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipRepairSendWorkBillList"); |
| | |
| | | #endregion |
| | | |
| | | #region 设å¤ç»´ä¿®æ´¾å·¥å æ·»å /ä¿®æ¹ |
| | | [Route("Sb_EquipRepairSendWorkBill/AddEquipRepairSendWorkBill")] |
| | | [HttpPost] |
| | | public object AddBill([FromBody] JObject sMainSub) |
| | | { |
| | | var _value = sMainSub["sMainSub"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | oCN.BeginTran(); |
| | | //ä¿å主表 |
| | | objJsonResult = AddBillMain(msg1); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ°å¢åæ®æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | public json AddBillMain(string msg1) |
| | | { |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | |
| | | int hentryid = int.Parse(sArray[2].ToString());//å表ç顺åºid |
| | | int OperationType = int.Parse(sArray[3].ToString());//æ°æ®ç±»å 1æ·»å 3ä¿®æ¹ |
| | | try |
| | | { |
| | | omodel = Newtonsoft.Json.JsonConvert.DeserializeObject<ClsSb_EquipRepairSendWorkBillMain>(msg2); |
| | | string BillType = "3909"; |
| | | |
| | | |
| | | if (OperationType == 1)//æ°å¢ |
| | | { |
| | | //主表 |
| | | oCN.RunProc("Insert Into Sb_EquipRepairSendWorkBillMain" + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HEquipID,HExplanation,HInnerBillNo,HRepairID,HEmpID" + |
| | | ",HManagerID,HDeptID,HRepairContent,HRepairPlanBeginDate,HRepairPlanEndDate" + |
| | | ",HPlanTimes,HCycleUnit" + |
| | | ") " + |
| | | " values('" + BillType + "','" + BillType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" + |
| | | ", " + omodel.HEquipID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HRepairID.ToString() + "," + omodel.HEmpID.ToString() + |
| | | "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HRepairContent + "','" + omodel.HRepairPlanBeginDate + "','" + omodel.HRepairPlanEndDate + "'" + |
| | | "," + omodel.HPlanTimes.ToString() + ",'" + omodel.HCycleUnit + "'" + |
| | | ") "); |
| | | |
| | | } |
| | | else if (OperationType == 3) |
| | | { |
| | | //ä¿®æ¹ |
| | | oCN.RunProc("UpDate Sb_EquipRepairSendWorkBillMain set " + |
| | | "HDate='" + omodel.HDate + "'" + |
| | | ",HYear='" + omodel.HYear.ToString() + "'" + |
| | | ",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HUpDater='" + omodel.HUpDater + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | //========================================= |
| | | ",HEquipID=" + omodel.HEquipID.ToString() + |
| | | ",HRepairID=" + omodel.HRepairID.ToString() + |
| | | ",HPlanTimes=" + omodel.HPlanTimes.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HRepairPlanBeginDate='" + omodel.HRepairPlanBeginDate + "'" + |
| | | ",HRepairPlanEndDate='" + omodel.HRepairPlanEndDate + "'" + |
| | | ",HRepairContent='" + omodel.HRepairContent + "'" + |
| | | ",HCycleUnit='" + omodel.HCycleUnit + "'" + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | " where HInterID=" + omodel.HInterID); |
| | | |
| | | //å é¤å表 |
| | | oCN.RunProc("delete from Sb_EquipRepairSendWorkBillSub where HInterID='" + omodel.HInterID + "' and HEntryID='" + hentryid + "'"); |
| | | } |
| | | //ä¿åå表 |
| | | objJsonResult = AddBillSub(msg3, hentryid); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | public json AddBillSub(string msg3, int hentryid) |
| | | { |
| | | DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipRepairSendWorkBillSub>>(msg3); |
| | | int i = 1; |
| | | //æå
¥å表 |
| | | foreach (Models.ClsSb_EquipRepairSendWorkBillSub oSub in DetailColl) |
| | | { |
| | | oCN.RunProc("Insert into Sb_EquipRepairSendWorkBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HRepairID,HManagerID,HRepairExplanation" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + (hentryid==-1?i: hentryid) + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HRepairID.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HRepairExplanation + "'" + |
| | | ") "); |
| | | i++; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | #region 设å¤ç»´ä¿®æ´¾å·¥å å é¤ |
| | | [Route("Sb_EquipRepairSendWorkBill/DeleteWorkBill")] |
| | | [HttpGet] |
| | | public object MouldDeleteBill(long HInterID, string User, string ModRightNameDelete) |
| | | { |
| | | try |
| | | { |
| | | //夿æé |
| | | //if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, false, User)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "没æå 餿é"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | oBill.ShowBill(HInterID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | if (oBill.omodel.HBillStatus > 1) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå¤äºä¸è½å é¤çç¶æ"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HCloseMan != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå·²å
³é,ä¸è½å é¤"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HDeleteMan != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå·²ä½åº,ä¸è½å é¤"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HChecker != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå·²å®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å 餿å"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æéå é¤"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | ds = oCn.RunProcReturn("select * from h_v_Sc_StationInBillListMain order by hmainid desc", "h_v_Sc_StationInBillListMain"); |
| | | ds = oCn.RunProcReturn("select * from h_v_Sc_StationInBillListMain"+sWhere+ "order by hmainid desc", "h_v_Sc_StationInBillListMain"); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è¿åè®°å½æåï¼"; |
| | |
| | | #endregion |
| | | |
| | | #region æ åå·¥æ¶å¯¼åºExcelè¡¨æ ¼æ°æ® |
| | | private System.IO.Stream ExcelStream() |
| | | { |
| | | HSSFWorkbook hssfworkbook = new HSSFWorkbook(); |
| | | ISheet sheet1 = hssfworkbook.CreateSheet("sheet1"); |
| | | IRow row1 = sheet1.CreateRow(0); |
| | | ds = oCn.RunProcReturn("select * from h_v_Sc_StationInBillListMain order by hmainid desc", "h_v_Sc_StationInBillListMain"); |
| | | row1.CreateCell(0).SetCellValue("è¿ç«ç产订åå·"); |
| | | row1.CreateCell(1).SetCellValue("æµè½¬å¡å·"); |
| | | row1.CreateCell(2).SetCellValue("è¿åºç«æç¨æ¶é´"); |
| | | row1.CreateCell(3).SetCellValue("å·¥æ¶"); |
| | | row1.CreateCell(4).SetCellValue("ä¸è¯æ°é"); |
| | | row1.CreateCell(5).SetCellValue("æ¥åºæ°é"); |
| | | row1.CreateCell(6).SetCellValue("è¿ç«æ°é"); |
| | | row1.CreateCell(7).SetCellValue("åºç«æ°é"); |
| | | row1.CreateCell(8).SetCellValue("åºç«æ¶é´"); |
| | | row1.CreateCell(9).SetCellValue("è¿ç«æ¶é´"); |
| | | row1.CreateCell(10).SetCellValue("å¶å人"); |
| | | row1.CreateCell(11).SetCellValue("å¶åæ¥æ"); |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | IRow row = sheet1.CreateRow(i + 1); |
| | | row.CreateCell(0).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«ç产订åå·"].ToString()); |
| | | row.CreateCell(1).SetCellValue(ds.Tables[0].Rows[i]["æµè½¬å¡å·"].ToString()); |
| | | row.CreateCell(2).SetCellValue(ds.Tables[0].Rows[i]["è¿åºç«æç¨æ¶é´"].ToString()); |
| | | row.CreateCell(3).SetCellValue(ds.Tables[0].Rows[i]["å·¥æ¶"].ToString()); |
| | | row.CreateCell(4).SetCellValue(ds.Tables[0].Rows[i]["ä¸è¯æ°é"].ToString()); |
| | | row.CreateCell(5).SetCellValue(ds.Tables[0].Rows[i]["æ¥åºæ°é"].ToString()); |
| | | row.CreateCell(6).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«æ°é"].ToString()); |
| | | row.CreateCell(7).SetCellValue(ds.Tables[0].Rows[i]["åºç«æ°é"].ToString()); |
| | | row.CreateCell(8).SetCellValue(ds.Tables[0].Rows[i]["åºç«æ¶é´"].ToString()); |
| | | row.CreateCell(9).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«æ¶é´"].ToString()); |
| | | row.CreateCell(10).SetCellValue(ds.Tables[0].Rows[i]["å¶å人"].ToString()); |
| | | row.CreateCell(11).SetCellValue(ds.Tables[0].Rows[i]["å¶åæ¥æ"].ToString()); |
| | | } |
| | | |
| | | MemoryStream file = new MemoryStream(); |
| | | hssfworkbook.Write(file); |
| | | file.Seek(0, SeekOrigin.Begin); |
| | | return file; |
| | | } |
| | | |
| | | [Route("Sc_PackUnionBill/Sc_StationInBillSetExcel")] |
| | | [HttpGet] |
| | | public HttpResponseMessage Sc_StationInBillSetExcel() |
| | | { |
| | | var file = ExcelStream(); |
| | | HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); |
| | | result.Content = new StreamContent(file); |
| | | result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.ms-excel"); |
| | | result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment"); |
| | | result.Content.Headers.ContentDisposition.FileName = "æ åå·¥æ¶è¡¨.xls"; |
| | | return result; |
| | | HSSFWorkbook workbook = new HSSFWorkbook(); |
| | | ISheet sheet = workbook.CreateSheet("sheet1"); |
| | | IRow row = sheet.CreateRow(0); |
| | | |
| | | |
| | | row.CreateCell(0).SetCellValue("è¿ç«ç产订åå·"); |
| | | row.CreateCell(1).SetCellValue("æµè½¬å¡å·"); |
| | | row.CreateCell(2).SetCellValue("è¿åºç«æç¨æ¶é´"); |
| | | row.CreateCell(3).SetCellValue("å·¥æ¶"); |
| | | row.CreateCell(4).SetCellValue("ä¸è¯æ°é"); |
| | | row.CreateCell(5).SetCellValue("æ¥åºæ°é"); |
| | | row.CreateCell(6).SetCellValue("è¿ç«æ°é"); |
| | | row.CreateCell(7).SetCellValue("åºç«æ°é"); |
| | | row.CreateCell(8).SetCellValue("åºç«æ¶é´"); |
| | | row.CreateCell(9).SetCellValue("è¿ç«æ¶é´"); |
| | | row.CreateCell(10).SetCellValue("å¶å人"); |
| | | row.CreateCell(11).SetCellValue("å¶åæ¥æ"); |
| | | //精确æ§å¶å宽 |
| | | sheet.SetColumnWidth(1, 5000); |
| | | sheet.SetColumnWidth(2, 5000); |
| | | sheet.SetColumnWidth(3, 5000); |
| | | sheet.SetColumnWidth(4, 5000); |
| | | sheet.SetColumnWidth(5, 5000); |
| | | sheet.SetColumnWidth(6, 5000); |
| | | sheet.SetColumnWidth(7, 5000); |
| | | sheet.SetColumnWidth(8, 5000); |
| | | sheet.SetColumnWidth(9, 5000); |
| | | sheet.SetColumnWidth(10, 5000); |
| | | |
| | | DataSet ds = oCn.RunProcReturn("select * from h_v_Sc_StationInBillListMain order by hmainid desc", "h_v_Sc_StationInBillListMain"); |
| | | for (var i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | IRow row1 = sheet.CreateRow(i + 1); |
| | | row1.CreateCell(0).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«ç产订åå·"].ToString()); |
| | | row1.CreateCell(1).SetCellValue(ds.Tables[0].Rows[i]["æµè½¬å¡å·"].ToString()); |
| | | row1.CreateCell(2).SetCellValue(ds.Tables[0].Rows[i]["è¿åºç«æç¨æ¶é´"].ToString()); |
| | | row1.CreateCell(3).SetCellValue(ds.Tables[0].Rows[i]["å·¥æ¶"].ToString()); |
| | | row1.CreateCell(4).SetCellValue(ds.Tables[0].Rows[i]["ä¸è¯æ°é"].ToString()); |
| | | row1.CreateCell(5).SetCellValue(ds.Tables[0].Rows[i]["æ¥åºæ°é"].ToString()); |
| | | row1.CreateCell(6).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«æ°é"].ToString()); |
| | | row1.CreateCell(7).SetCellValue(ds.Tables[0].Rows[i]["åºç«æ°é"].ToString()); |
| | | row1.CreateCell(8).SetCellValue(ds.Tables[0].Rows[i]["åºç«æ¶é´"].ToString()); |
| | | row1.CreateCell(9).SetCellValue(ds.Tables[0].Rows[i]["è¿ç«æ¶é´"].ToString()); |
| | | row1.CreateCell(10).SetCellValue(ds.Tables[0].Rows[i]["å¶å人"].ToString()); |
| | | row1.CreateCell(11).SetCellValue(ds.Tables[0].Rows[i]["å¶åæ¥æ"].ToString()); |
| | | } |
| | | System.IO.MemoryStream ms = new System.IO.MemoryStream(); |
| | | workbook.Write(ms); |
| | | ms.Position = 0; |
| | | |
| | | var response = new HttpResponseMessage(HttpStatusCode.OK); |
| | | response.Content = new StreamContent(ms); |
| | | |
| | | response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); |
| | | var fileName = "æ åå·¥æ¶_.xls"; |
| | | |
| | | response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment") |
| | | { |
| | | FileName = System.Web.HttpUtility.UrlEncode(fileName) |
| | | }; |
| | | return response; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldMaintainBill/GetMouldMaintainBillList")] |
| | | [HttpGet] |
| | | public object GetMouldMaintainBillList(string sWhere) |
| | | public object GetMouldMaintainBillList(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_MouldMaintainBillList_s(sWhere); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldDotCheckPlanBill/GetMouldDotCheckPlanBillList")] |
| | | [HttpGet] |
| | | public object GetMouldDotCheckPlanBillList(string sWhere) |
| | | public object GetMouldDotCheckPlanBillList(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckPlanBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_MouldDotCheckPlanBillList_s(sWhere); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldDotCheckBill/GetMouldDotCheckBillList")] |
| | | [HttpGet] |
| | | public object GetMouldDotCheckBillList(string sWhere) |
| | | public object GetMouldDotCheckBillList(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | ds = Sc_MouldDotCheckBillList_s(sWhere); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList")] |
| | | [HttpGet] |
| | | public object GetMouldMaintainPlanBillList(string sWhere) |
| | | public object GetMouldMaintainPlanBillList(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainPlanBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_MouldMaintainPlanBillList_s(sWhere); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainPlanBill_Edit", 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsSc_MouldMaintainPlanBill oBill = new DAL.ClsSc_MouldMaintainPlanBill(); |
| | | List<Model.ClsSc_MouldMaintainPlanBillMain> lsmain = new List<Model.ClsSc_MouldMaintainPlanBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldMaintainPlanBill/DeltetMouldMaintainPlanBill")] |
| | | [HttpGet] |
| | | public object DeltetMouldMaintainPlanBill(string HInterID) |
| | | public object DeltetMouldMaintainPlanBill(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sb_MouldRepairWorkBill_Delete", 1, false, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ å 餿éï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainPlanBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | string msg5 = sArray[3].ToString(); |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainBill_Edit", 1, false, msg5)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsSc_MouldMaintainBill oBill = new DAL.ClsSc_MouldMaintainBill(); |
| | | List<Model.ClsSc_MouldMaintainBillMain> lsmain = new List<Model.ClsSc_MouldMaintainBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldMaintainBill/DeltetSc_MouldMaintainBill")] |
| | | [HttpGet] |
| | | public object DeltetSc_MouldMaintainBill(string HInterID) |
| | | public object DeltetSc_MouldMaintainBill(string HInterID,string user) |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | if (lngBillKey == 0) |
| | |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | |
| | | string msg4 = sArray[2].ToString(); |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckBill_Edit", 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsSc_MouldDotCheckBill oBill = new DAL.ClsSc_MouldDotCheckBill(); |
| | | List<Model.ClsSc_MouldDotCheckBillMain> lsmain = new List<Model.ClsSc_MouldDotCheckBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | |
| | | #region [模å
·ç¹æ£è®°å½è¡¨å é¤åè½] |
| | | /// <summary> |
| | | /// 模å
·ç»´ä¿®åå é¤åè½ |
| | | /// 模å
·ç¹æ£è®°å½å é¤åè½ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldDotCheckBill/DeltetSc_MouldDotCheckBill")] |
| | | [HttpGet] |
| | | public object DeltetSc_MouldDotCheckBill(string HInterID) |
| | | public object DeltetSc_MouldDotCheckBill(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sb_MouldRepairWorkBill_Delete", 1, false, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ å 餿éï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckPlanBill_Edit", 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsSc_MouldDotCheckPlanBill oBill = new DAL.ClsSc_MouldDotCheckPlanBill(); |
| | | List<Model.ClsSc_MouldDotCheckPlanBillMain> lsmain = new List<Model.ClsSc_MouldDotCheckPlanBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldDotCheckPlanBill/DeltetSc_MouldDotCheckPlanBillBill")] |
| | | [HttpGet] |
| | | public object DeltetSc_MouldDotCheckPlanBillBill(string HInterID) |
| | | public object DeltetSc_MouldDotCheckPlanBillBill(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sb_MouldRepairWorkBill_Delete", 1, false, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ å 餿éï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckPlanBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldScrapInHouseBill/SaveGetMouldScrapInHouseBillList")] |
| | | [HttpPost] |
| | | public object fSaveGetMouldScrapInHouseBillList([FromBody] JObject msg) |
| | | public object SaveGetMouldScrapInHouseBillList([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | |
| | | |
| | | [Route("Sc_MouldLifeChangeBill/GetMouldLifeChangeBill")] |
| | | [HttpGet] |
| | | public object GetMouldLifeChangeBill(string sWhere) |
| | | public object GetMouldLifeChangeBill(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldLifeChangeBillList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_GetMouldLifeChangeBill(sWhere); |
| | | objJsonResult.code = "1"; |
| | |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldLifeChangeBill_Edit", 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DLL.ClsSc_MouldLifeChangeBill oBill = new DLL.ClsSc_MouldLifeChangeBill(); |
| | | List<Model.ClsSc_MouldLifeChangeBillMain> lsmain = new List<Model.ClsSc_MouldLifeChangeBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MouldLifeChangeBill/DeltetMouldLifeChangeBill")] |
| | | [HttpGet] |
| | | public object DeltetMouldLifeChangeBill(string HInterID) |
| | | public object DeltetMouldLifeChangeBill(string HInterID,string user) |
| | | { |
| | | //ç¼è¾æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sc_MouldLifeChangeBill_Delete", 1, false, DBUtility.ClsPub.CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ å 餿éï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_MouldLifeChangeBill_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HChecker != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå·²å®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //ä¸éè¦ |
| | | //if (oBill.omodel.HChecker != "") |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "åæ®å½åå·²å®¡æ ¸"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //转æ¢id |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
New file |
| | |
| | | using DBUtility; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | public class Sc_PckSplitBillController : ApiController |
| | | { |
| | | private JsonResult objJsonResult = new JsonResult(); |
| | | public DataSet ds = new DataSet(); |
| | | public double sRelQty = 0; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | public WebServer webserver = new WebServer(); |
| | | /// <summary> |
| | | /// æç®±åæ«æææ¡ç /ç´æ¥è°ç¨webservice |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("PackSplitBill/SetPackBarCode_Webs")] |
| | | [HttpGet] |
| | | public Object SetPackBarCode_Webs(Int64 sInterID, string sBillNo, string sBillType, string HTBarCode, string sMaker,Int64 HOWNERID) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | WebS.ClsKf_ICStockBill_WMS WebSoBar = new WebS.ClsKf_ICStockBill_WMS(); |
| | | //string sExpressNumber = ""; |
| | | WebSoBar = oWebs.get_CheckTypeByPackBarCode_Pack(sInterID, sBillNo, sBillType,HTBarCode,sMaker,HOWNERID,ref DBUtility.ClsPub.sErrInfo); |
| | | if (WebSoBar == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = WebSoBar; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = e.Message + ";" + e.StackTrace; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | [Route("PackSplitBill/GetBillEntry_TmpList_Pack")] |
| | | [HttpGet] |
| | | public object GetBillEntry_TmpList_Pack(Int64 HBillID, string HBillNo, string HBillType) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | ds = oWebs.GetBillEntry_TmpList_Pack(HBillID, HBillNo, HBillType, ref DBUtility.ClsPub.sErrInfo); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æç®±åæ«ææç®±æ¡ç /ç´æ¥è°ç¨webservice |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("PackSplit/get_CheckTypeByBarCode_Json")] |
| | | [HttpGet] |
| | | public Object get_CheckTypeByBarCode_Json(string HBarCode,Int64 sInterID, string HBillType, string sBillNo, string HTBarCode, string sMaker, Int64 HOWNERID) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | if (oWebs.get_CheckTypeByBarCode_PackSplit(HBarCode, sInterID, HBillType, sBillNo, HTBarCode, sMaker, HOWNERID, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ«ç æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = e.Message + ";" + e.StackTrace; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | [Route("PackSplit/Delete")] |
| | | [HttpGet] |
| | | public object Delete(long HInterID, string HBarCode,string HBillType) |
| | | { |
| | | string sErrMsg = string.Empty; |
| | | try |
| | | { |
| | | if (DeletePackSplitBill(HInterID, HBarCode, HBillType, ref sErrMsg)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å 餿åï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å é¤å¤±è´¥ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å é¤å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | public bool DeletePackSplitBill(long HInterID, string HBarCode, string HBillType, ref string sErrMsg) |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | |
| | | if (oWebs.set_DelPonderationBillMain_Temp_Pack(HInterID, HBarCode, HBillType, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | sErrMsg = "å 餿åï¼"; |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | sErrMsg = "å é¤å¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çææç®±å |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("PackSplit/set_SavePackSplitBill_Json")] |
| | | [HttpPost] |
| | | public Object set_SavePackSplitBill_Json(long sInterID, string HBillType, string sBillNo,string HTBarCode,string sMaker,long HOWNERID, ref string sErrMsg) |
| | | { |
| | | try |
| | | { |
| | | |
| | | if (set_SavePackSplitBill_New(sInterID, HBillType, sBillNo, HTBarCode, sMaker, HOWNERID, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "çæéæåæåï¼åæ®å·ä¸ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¸ä¼ 失败ï¼" + DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¸ä¼ 失败ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | public bool set_SavePackSplitBill_New(long sInterID, string HBillType, string sBillNo, string HTBarCode, string sMaker, long HOWNERID, ref string sErrMsg) |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | if (oWebs.set_SavePackSplitBill_New(sInterID, HBillType, sBillNo, HTBarCode, sMaker, HOWNERID, ref sErrMsg)) |
| | | { |
| | | sErrMsg = "ä¿åæåï¼" + sBillNo; |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | sErrMsg = "åæ®å·ï¼" + sBillNo + ", åæ®IDï¼" + sInterID + ";" + sErrMsg; |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using System.Web.Http; |
| | | using WebAPI.DLL; |
| | | using WebAPI.Models; |
| | | using WebAPI.Service; |
| | | |
| | |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | |
| | | private json objJsonResult = new json(); |
| | | |
| | | |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | |
| | | ///<summary> |
| | | ///å°è£
ç¶æç åè¿åä¿¡æ¯çå
¬ç¨æ¹æ³ã |
| | |
| | | return GetObjectJson(ds); |
| | | } |
| | | |
| | | #region å·¥åºè®¡åå |
| | | List<ClsSc_ProcessPlanSub> DetailColl = new List<ClsSc_ProcessPlanSub>(); |
| | | ClsSc_ProcessPlanMain omodel = new ClsSc_ProcessPlanMain(); |
| | | ClsSc_ProcessPlan oBill = new ClsSc_ProcessPlan(); |
| | | |
| | | #region å·¥åºè®¡ååå表 |
| | | /// <summary> |
| | | /// è¿åç产工åºè®¡ååå表 |
| | | ///åæ°ï¼string sqlã |
| | |
| | | } |
| | | return GetObjectJson(ds); |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// è¿åçäº§å·¥åºæ´¾å·¥åå表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | #region ä¿å/ç¼è¾ |
| | | //å·¥åºè®¡åå ä¿å/ç¼è¾ |
| | | [Route("Sc_ProcessMangement/AddBill")] |
| | | [HttpPost] |
| | | public object AddBill([FromBody] JObject sMainSub) |
| | | { |
| | | var _value = sMainSub["sMainSub"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | oCN.BeginTran(); |
| | | //ä¿å主表 |
| | | objJsonResult = AddBillMain(msg1); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ°å¢åæ®æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | public json AddBillMain(string msg1) |
| | | { |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | |
| | | int hentryid = int.Parse(sArray[2].ToString());//å表ç顺åºid |
| | | int OperationType = int.Parse(sArray[3].ToString());//æ°æ®ç±»å 1æ·»å 3ä¿®æ¹ |
| | | try |
| | | { |
| | | omodel = Newtonsoft.Json.JsonConvert.DeserializeObject<ClsSc_ProcessPlanMain>(msg2); |
| | | string BillType = "3715"; |
| | | |
| | | |
| | | if (OperationType == 1)//æ°å¢ |
| | | { |
| | | //主表 |
| | | oCN.RunProc("Insert Into Sc_ProcessPlanMain " + |
| | | "(HYear,HPeriod,HBillType,HBillSubType,HInterID" + |
| | | ",HDate,HBillNo,HBillStatus,HCheckItemNowID,HCheckItemNextID" + |
| | | ",HICMOInterID,HICMOBillNo,HMaterID,HMaterNumber,HUnitID" + |
| | | ",HUnitNumber,HPlanQty,HPlanBeginDate,HPlanEndDate,HExplanation" + |
| | | ",HRemark,HInnerBillNo,HMaker,HMakeDate" + |
| | | ") " + |
| | | " values(" + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + BillType + "','" + BillType + "'," + omodel.HInterID.ToString() + |
| | | ",'" + omodel.HDate.ToShortDateString() + "','" + omodel.HBillNo + "'," + (omodel.HBillStatus=1) + "," + omodel.HCheckItemNowID.ToString() + "," + omodel.HCheckItemNextID.ToString() + |
| | | "," + omodel.HICMOInterID.ToString() + ",'" + omodel.HICMOBillNo + "'," + omodel.HMaterID.ToString() + ",'" + omodel.HMaterNumber + "'," + omodel.HUnitID.ToString() + |
| | | ",'" + omodel.HUnitNumber + "'," + omodel.HPlanQty.ToString() + ",'" + omodel.HPlanBeginDate.ToShortDateString() + "','" + omodel.HPlanEndDate.ToShortDateString() + "','" + omodel.HExplanation + "'" + |
| | | ",'" + omodel.HRemark + "','" + omodel.HInnerBillNo + "','" + omodel.HMaker + "',getdate()" + |
| | | ") "); |
| | | } |
| | | else if (OperationType == 3) |
| | | { |
| | | //ä¿®æ¹ |
| | | oCN.RunProc("UpDate Sc_ProcessPlanMain set " + |
| | | " HYear=" + omodel.HYear.ToString() + |
| | | ",HPeriod=" + omodel.HPeriod.ToString() + |
| | | //",HInterID=" + omodel.HInterID.ToString() + |
| | | ",HDate='" + omodel.HDate.ToShortDateString() + "'" + |
| | | //",HBillNo='" + omodel.HBillNo + "'" + |
| | | ",HBillStatus=" + omodel.HBillStatus.ToString() + |
| | | ",HCheckItemNowID=" + omodel.HCheckItemNowID.ToString() + |
| | | ",HCheckItemNextID=" + omodel.HCheckItemNextID.ToString() + |
| | | ",HICMOInterID=" + omodel.HICMOInterID.ToString() + |
| | | ",HICMOBillNo='" + omodel.HICMOBillNo + "'" + |
| | | ",HMaterID=" + omodel.HMaterID.ToString() + |
| | | ",HMaterNumber='" + omodel.HMaterNumber + "'" + |
| | | ",HUnitID=" + omodel.HUnitID.ToString() + |
| | | ",HUnitNumber='" + omodel.HUnitNumber + "'" + |
| | | ",HPlanQty=" + omodel.HPlanQty.ToString() + |
| | | ",HPlanBeginDate='" + omodel.HPlanBeginDate.ToShortDateString() + "'" + |
| | | ",HPlanEndDate='" + omodel.HPlanEndDate.ToShortDateString() + "'" + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | ",HUpDater='" + omodel.HUpDater + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | " where HInterID=" + omodel.HInterID.ToString()); |
| | | |
| | | //å é¤å表 |
| | | oCN.RunProc("Delete From Sc_ProcessPlanSub where HInterID = " + omodel.HInterID.ToString()+ " and hentryid="+ hentryid); |
| | | } |
| | | //ä¿åå表 |
| | | objJsonResult = AddBillSub(msg3, hentryid); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | public json AddBillSub(string msg3, int hentryid) |
| | | { |
| | | DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_ProcessPlanSub>>(msg3); |
| | | int i = 1; |
| | | //æå
¥å表 |
| | | foreach (Models.ClsSc_ProcessPlanSub oSub in DetailColl) |
| | | { |
| | | oCN.RunProc("Insert into Sc_ProcessPlanSub " + |
| | | " (HInterID,HEntryID,HBillNo,HProcNo,HProcID,HWorkingQty" + |
| | | ",HProcNumber,HWorkRemark,HCenterID,HDeptID,HDeptNumber" + |
| | | ",HGroupID,HGroupNumber,HWorkerID,HWorkerNumber,HSourceID" + |
| | | ",HQty,HTimeUnit,HPlanWorkTimes,HPlanBeginDate,HPlanEndDate" + |
| | | ",HICMOInterID,HICMOBillNo,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | | ",HCloseMan,HCloseType,HRemark,HSourceInterID,HSourceEntryID" + |
| | | ",HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HBeginDayQty,HBeginFixQty,HFixWorkDays,HTrunWorkDays,HReadyTimes" + |
| | | ",HReadyTime,HQueueTime,HMoveTime,HBatchNo" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," +(hentryid==-1?i: hentryid) + ",'" + oSub.HBillNo + "'," + oSub.HProcNo.ToString() + "," + oSub.HProcID.ToString() + "," + oSub.HWorkingQty.ToString() + |
| | | ",'" + oSub.HProcNumber + "','" + oSub.HWorkRemark + "'," + oSub.HCenterID.ToString() + "," + oSub.HDeptID.ToString() + ",'" + oSub.HDeptNumber + "'" + |
| | | "," + oSub.HGroupID.ToString() + ",'" + oSub.HGroupNumber + "'," + oSub.HWorkerID.ToString() + ",'" + oSub.HWorkerNumber + "'," + oSub.HSourceID.ToString() + |
| | | "," + oSub.HQty.ToString() + ",'" + oSub.HTimeUnit + "'," + oSub.HPlanWorkTimes.ToString() + ",'" + oSub.HPlanBeginDate.ToString() + "','" + oSub.HPlanEndDate.ToString() + "'" + |
| | | "," + oSub.HICMOInterID.ToString() + ",'" + oSub.HICMOBillNo + "'," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |
| | | ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + |
| | | ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HBeginDayQty.ToString() + "," + oSub.HBeginFixQty.ToString() + "," + oSub.HFixWorkDays.ToString() + "," + oSub.HTrunWorkDays.ToString() + "," + oSub.HReadyTimes.ToString() + |
| | | "," + oSub.HReadyTime.ToString() + "," + oSub.HQueueTime.ToString() + "," + oSub.HMoveTime.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | ") "); |
| | | i++; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | #region å®¡æ ¸/åå®¡æ ¸ |
| | | [Route("Sc_ProcessMangement/CheckDeOAuditBill")] |
| | | [HttpGet] |
| | | public object CheckDeOAuditBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | // string ModRightNameCheck = ""; 该模åçå®¡æ ¸åè½ |
| | | DBUtility.ClsPub.CurUserName = CurUserName;//åå¨ç¨æ·å |
| | | |
| | | try |
| | | { |
| | | ////夿æ¯å¦æå®¡æ ¸æé |
| | | // if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | //夿idæ¯å¦å¤§äº0 |
| | | if (HInterID <= 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "IDå°äº0"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //转æ¢id |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | |
| | | //æ¥è¯¢å®¡æ ¸çè¿æ¡æ°æ® |
| | | ds = oCN.RunProcReturn("select * from Sc_ProcessPlanMain where HInterID='" + HInterID + "'", "Sc_ProcessPlanMain"); |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | string HCloseMan = ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim();//å
³é人 |
| | | string HDeleteMan = ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim();//ä½åºäºº |
| | | string HChecker = ds.Tables[0].Rows[0]["HChecker"].ToString().Trim();//å®¡æ ¸äºº |
| | | |
| | | if (HCloseMan != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½å忮已å
³é,ä¸è½å®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (HDeleteMan != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½å忮已ä½åº,ä¸è½å®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //IsAudit==0 å®¡æ ¸ |
| | | if (IsAudit == 0) |
| | | { |
| | | if (HChecker != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½åæ°æ®å·²å®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | //IsAudit==1 åå®¡æ ¸ |
| | | if (IsAudit == 1) |
| | | { |
| | | if (HChecker == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½åæ°æ®æªå®¡æ ¸"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨;åå :"+DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //å®¡æ ¸æäº¤ |
| | | if (IsAudit == 0) |
| | | { |
| | | if (CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å®¡æ ¸æå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥,åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | //åå®¡æ ¸æäº¤ |
| | | if (IsAudit == 1) |
| | | { |
| | | if (AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸æå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå®¡æ ¸å¤±è´¥,åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥æåå®¡æ ¸å¤±è´¥" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | //å®¡æ ¸ |
| | | public bool CheckBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | string HChecker = DBUtility.ClsPub.CurUserName;//ç¨æ·å |
| | | oCN.BeginTran();//æå¼äºå¡ |
| | | oCN.RunProc("update Sc_ProcessPlanMain set HChecker='" + HChecker + "',HCheckDate='" + DateTime.Now + "',HBillStatus=2 where HInterID='" + lngBillKey + "'"); |
| | | oCN.Commit();//å
³éäºå¡ |
| | | sReturn = "å®¡æ ¸åæ®æå!"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | //åå®¡æ ¸ |
| | | public bool AbandonCheck(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | string HChecker = DBUtility.ClsPub.CurUserName;//ç¨æ·å |
| | | oCN.BeginTran();//æå¼äºå¡ |
| | | oCN.RunProc("update Sc_ProcessPlanMain set HChecker='',HCheckDate=null,HBillStatus=1 where HInterID='" + lngBillKey + "'"); |
| | | oCN.Commit();//å
³éäºå¡ |
| | | sReturn = "åå®¡æ ¸åæ®æå!"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å é¤ |
| | | [Route("Sc_ProcessMangement/DeleteProcessBill")] |
| | | [HttpGet] |
| | | public object MouldDeleteBill(long HInterID, string User, string ModRightNameDelete) |
| | | { |
| | | try |
| | | { |
| | | //夿æé |
| | | //if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, false, User)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "没æå 餿é"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | oBill.ShowBill(HInterID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | if (oBill.omodel.HBillStatus > 1) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åæ®å½åå¤äºä¸è½å é¤çç¶æ"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //ä¸éè¦ |
| | | //if (oBill.omodel.HChecker != "") |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "åæ®å½åå·²å®¡æ ¸"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å 餿å"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æéå é¤"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #endregion |
| | | /// <summary> |
| | | /// è¿åçäº§å·¥åºæ´¾å·¥åå表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json")] |
| | | [HttpGet] |
| | | public object MES_Sc_ProcessSendWorkMain_Json(string sWhere) |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace WebAPI.DLL |
| | | { |
| | | public class ClsSb_EquipRepairSendWorkBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Models.ClsSb_EquipRepairSendWorkBillMain omodel = new Models.ClsSb_EquipRepairSendWorkBillMain(); |
| | | public List<Models.ClsSb_EquipRepairSendWorkBillSub> DetailColl = new List<Models.ClsSb_EquipRepairSendWorkBillSub>(); |
| | | |
| | | public ClsSb_EquipRepairSendWorkBill() |
| | | { |
| | | base.MvarItemKeySub = "Sb_EquipRepairSendWorkBillSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey = "Sb_EquipRepairSendWorkBillMain"; |
| | | base.MvarReportTitle = "设å¤ç»´ä¿®æ´¾å·¥å"; |
| | | base.BillType = "3909"; |
| | | } |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | | ~ClsSb_EquipRepairSendWorkBill() |
| | | { |
| | | DetailColl = null; |
| | | } |
| | | |
| | | #endregion èªå®ä¹æ¹æ³ |
| | | //ä¿®æ¹åæ® |
| | | public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | // |
| | | oCn.BeginTran(); |
| | | //æ´æ°ä¸»è¡¨ |
| | | oCn.RunProc("UpDate Sb_EquipRepairSendWorkBillMain set " + |
| | | " HBillNo='" + omodel.HBillNo + "'" + //åºå®èµå¼=============== |
| | | ",HDate='" + omodel.HDate + "'" + |
| | | ",HYear='" + omodel.HYear.ToString() + "'" + |
| | | ",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | //========================================= |
| | | ",HEquipID=" + omodel.HEquipID.ToString() + |
| | | ",HRepairID=" + omodel.HRepairID.ToString() + |
| | | ",HPlanTimes=" + omodel.HPlanTimes.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HRepairPlanBeginDate='" + omodel.HRepairPlanBeginDate + "'" + |
| | | ",HRepairPlanEndDate='" + omodel.HRepairPlanEndDate + "'" + |
| | | ",HRepairContent='" + omodel.HRepairContent + "'" + |
| | | ",HCycleUnit='" + omodel.HCycleUnit + "'" + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | //DeleteRelation(ref sReturn, lngBillKey); |
| | | ////å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | ////æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Models.ClsSb_EquipRepairSendWorkBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sb_EquipRepairSendWorkBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HRepairID,HManagerID,HRepairExplanation" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HRepairID.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HRepairExplanation + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ°å¢åæ® |
| | | public override bool AddBill(ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sb_EquipRepairSendWorkBillMain" + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HEquipID,HExplanation,HInnerBillNo,HRepairID,HEmpID" + |
| | | ",HManagerID,HDeptID,HRepairContent,HRepairPlanBeginDate,HRepairPlanEndDate" + |
| | | ",HPlanTimes,HCycleUnit" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HEquipID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HRepairID.ToString() + "," + omodel.HEmpID.ToString() + |
| | | "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HRepairContent + "','" + omodel.HRepairPlanBeginDate + "','" + omodel.HRepairPlanEndDate + "'" + |
| | | "," + omodel.HPlanTimes.ToString() + ",'" + omodel.HCycleUnit + "'" + |
| | | ") "); |
| | | ////æå
¥å表 |
| | | foreach (Models.ClsSb_EquipRepairSendWorkBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sb_EquipRepairSendWorkBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HRepairID,HManagerID,HRepairExplanation" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HRepairID.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HRepairExplanation + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //æ¥è¯¢ä¸»è¡¨ |
| | | DataSet Ds; |
| | | Ds = oCn.RunProcReturn("Select * from Sb_EquipRepairSendWorkBillMain Where HInterID=" + lngBillKey.ToString(), "Sb_EquipRepairSendWorkBillMain"); |
| | | if (Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "åæ®æªæ¾å°ï¼"; |
| | | return false; |
| | | } |
| | | //èµå¼ |
| | | omodel.HYear = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HYear"]); |
| | | omodel.HPeriod = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPeriod"]); |
| | | omodel.HBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillType"]); |
| | | omodel.HBillSubType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillSubType"]); |
| | | omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]); |
| | | omodel.HDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HDate"]); |
| | | omodel.HBillNo = Ds.Tables[0].Rows[0]["HBillNo"].ToString().Trim(); |
| | | omodel.HBillStatus = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HBillStatus"]); |
| | | omodel.HCheckItemNowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNowID"]); |
| | | omodel.HCheckItemNextID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNextID"]); |
| | | omodel.HCheckFlowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckFlowID"]); |
| | | omodel.HRemark = Ds.Tables[0].Rows[0]["HRemark"].ToString().Trim(); |
| | | omodel.HBackDate = Ds.Tables[0].Rows[0]["HBackDate"].ToString().Trim(); |
| | | omodel.HBacker = Ds.Tables[0].Rows[0]["HBacker"].ToString().Trim(); |
| | | omodel.HCheckDate = Ds.Tables[0].Rows[0]["HCheckDate"].ToString().Trim(); |
| | | omodel.HChecker = Ds.Tables[0].Rows[0]["HChecker"].ToString().Trim(); |
| | | omodel.HMaker = Ds.Tables[0].Rows[0]["HMaker"].ToString().Trim(); |
| | | omodel.HMakeDate = Ds.Tables[0].Rows[0]["HMakeDate"].ToString().Trim(); |
| | | omodel.HUpDateDate = Ds.Tables[0].Rows[0]["HUpDateDate"].ToString().Trim(); |
| | | omodel.HUpDater = Ds.Tables[0].Rows[0]["HUpDater"].ToString().Trim(); |
| | | omodel.HCloseDate = Ds.Tables[0].Rows[0]["HCloseDate"].ToString().Trim(); |
| | | omodel.HCloseMan = Ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim(); |
| | | omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); |
| | | omodel.HDeleteDate = Ds.Tables[0].Rows[0]["HDeleteDate"].ToString().Trim(); |
| | | omodel.HDeleteMan = Ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim(); |
| | | //======================================= |
| | | omodel.HEquipID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEquipID"]); |
| | | omodel.HRepairID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HRepairID"]); |
| | | omodel.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"]); |
| | | omodel.HPlanTimes = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPlanTimes"]); |
| | | omodel.HManagerID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HManagerID"]); |
| | | omodel.HRepairPlanBeginDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HRepairPlanBeginDate"]); |
| | | omodel.HRepairPlanEndDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HRepairPlanEndDate"]); |
| | | omodel.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"]); |
| | | omodel.HRepairContent = Ds.Tables[0].Rows[0]["HRepairContent"].ToString().Trim(); |
| | | omodel.HCycleUnit = Ds.Tables[0].Rows[0]["HCycleUnit"].ToString().Trim(); |
| | | omodel.HExplanation = Ds.Tables[0].Rows[0]["HExplanation"].ToString().Trim(); |
| | | omodel.HInnerBillNo = Ds.Tables[0].Rows[0]["HInnerBillNo"].ToString().Trim(); |
| | | //å¾ªç¯ |
| | | DataSet DsSub; |
| | | DsSub = oCn.RunProcReturn("Select * from Sb_EquipRepairSendWorkBillSub Where HInterID=" + lngBillKey.ToString() + " order by HEntryID ", "Sb_EquipRepairSendWorkBillSub"); |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Models.ClsSb_EquipRepairSendWorkBillSub oSub = new Models.ClsSb_EquipRepairSendWorkBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |
| | | oSub.HSourceInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceInterID"]); |
| | | oSub.HSourceEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceEntryID"]); |
| | | oSub.HSourceBillType = DsSub.Tables[0].Rows[i]["HSourceBillType"].ToString().Trim(); |
| | | oSub.HSourceBillNo = DsSub.Tables[0].Rows[i]["HSourceBillNo"].ToString().Trim(); |
| | | oSub.HRelationQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationQty"]); |
| | | oSub.HRelationMoney = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationMoney"]); |
| | | oSub.HCloseMan = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HCloseMan"]); |
| | | oSub.HCloseType = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HCloseType"]); |
| | | oSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HEntryCloseDate"]); |
| | | oSub.HRemark = DsSub.Tables[0].Rows[i]["HRemark"].ToString().Trim(); |
| | | //=========================================== |
| | | oSub.HRepairID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HRepairID"]); |
| | | oSub.HRepairExplanation = DsSub.Tables[0].Rows[i]["HRepairExplanation"].ToString().Trim(); |
| | | oSub.HManagerID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HManagerID"]); |
| | | |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace WebAPI.DLL |
| | | { |
| | | public class ClsSc_ProcessPlan:DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Models.ClsSc_ProcessPlanMain omodel = new Models.ClsSc_ProcessPlanMain(); |
| | | public List<Models.ClsSc_ProcessPlanSub> DetailColl = new List<Models.ClsSc_ProcessPlanSub>(); |
| | | |
| | | public ClsSc_ProcessPlan() |
| | | { |
| | | base.MvarItemKeySub = "Sc_ProcessPlanSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey="Sc_ProcessPlanMain"; |
| | | base.MvarReportTitle="å·¥åºè®¡åå"; |
| | | base.BillType="3715"; |
| | | } |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | | ~ClsSc_ProcessPlan() |
| | | { |
| | | DetailColl = null; |
| | | } |
| | | |
| | | #endregion èªå®ä¹æ¹æ³ |
| | | //å é¤ |
| | | public bool DeleteBill2(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | oK3Cn.RunProc("update ICMO set FCardClosed=1059 where finterid=" + lngBillKey.ToString()); |
| | | return true; |
| | | } |
| | | //ä¿®æ¹åæ® |
| | | public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | // |
| | | oCn.BeginTran(); |
| | | //æ´æ°ä¸»è¡¨ |
| | | oCn.RunProc("UpDate Sc_ProcessPlanMain set " + |
| | | " HYear=" + omodel.HYear.ToString() + |
| | | ",HPeriod=" + omodel.HPeriod.ToString() + |
| | | ",HInterID=" + omodel.HInterID.ToString() + |
| | | ",HDate='" + omodel.HDate.ToShortDateString() + "'" + |
| | | ",HBillNo='" + omodel.HBillNo + "'" + |
| | | ",HBillStatus=" + omodel.HBillStatus.ToString() + |
| | | ",HCheckItemNowID=" + omodel.HCheckItemNowID.ToString() + |
| | | ",HCheckItemNextID=" + omodel.HCheckItemNextID.ToString() + |
| | | ",HICMOInterID=" + omodel.HICMOInterID.ToString() + |
| | | ",HICMOBillNo='" + omodel.HICMOBillNo + "'" + |
| | | ",HMaterID=" + omodel.HMaterID.ToString() + |
| | | ",HMaterNumber='" + omodel.HMaterNumber + "'" + |
| | | ",HUnitID=" + omodel.HUnitID.ToString() + |
| | | ",HUnitNumber='" + omodel.HUnitNumber + "'" + |
| | | ",HPlanQty=" + omodel.HPlanQty.ToString() + |
| | | ",HPlanBeginDate='" + omodel.HPlanBeginDate.ToShortDateString() + "'" + |
| | | ",HPlanEndDate='" + omodel.HPlanEndDate.ToShortDateString() + "'" + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Models.ClsSc_ProcessPlanSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_ProcessPlanSub " + |
| | | " (HInterID,HEntryID,HBillNo,HProcNo,HProcID,HWorkingQty" + |
| | | ",HProcNumber,HWorkRemark,HCenterID,HDeptID,HDeptNumber" + |
| | | ",HGroupID,HGroupNumber,HWorkerID,HWorkerNumber,HSourceID" + |
| | | ",HQty,HTimeUnit,HPlanWorkTimes,HPlanBeginDate,HPlanEndDate" + |
| | | ",HICMOInterID,HICMOBillNo,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | | ",HCloseMan,HCloseType,HRemark,HSourceInterID,HSourceEntryID" + |
| | | ",HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HBeginDayQty,HBeginFixQty,HFixWorkDays,HTrunWorkDays,HReadyTimes" + |
| | | ",HReadyTime,HQueueTime,HMoveTime,HBatchNo" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HBillNo + "'," + oSub.HProcNo.ToString() + "," + oSub.HProcID.ToString() + "," + oSub.HWorkingQty.ToString() + |
| | | ",'" + oSub.HProcNumber + "','" + oSub.HWorkRemark + "'," + oSub.HCenterID.ToString() + "," + oSub.HDeptID.ToString() + ",'" + oSub.HDeptNumber + "'" + |
| | | "," + oSub.HGroupID.ToString() + ",'" + oSub.HGroupNumber + "'," + oSub.HWorkerID.ToString() + ",'" + oSub.HWorkerNumber + "'," + oSub.HSourceID.ToString() + |
| | | "," + oSub.HQty.ToString() + ",'" + oSub.HTimeUnit + "'," + oSub.HPlanWorkTimes.ToString() + ",'" + oSub.HPlanBeginDate + "','" + oSub.HPlanEndDate +"'"+ |
| | | "," + oSub.HICMOInterID.ToString() + ",'" + oSub.HICMOBillNo + "'," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo +"'"+ |
| | | ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) +",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + |
| | | ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HBeginDayQty.ToString() + "," + oSub.HBeginFixQty.ToString() + "," + oSub.HFixWorkDays.ToString() + "," + oSub.HTrunWorkDays.ToString() + "," + oSub.HReadyTimes.ToString() + |
| | | "," + oSub.HReadyTime.ToString() + "," + oSub.HQueueTime.ToString() + "," + oSub.HMoveTime.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ°å¢åæ® |
| | | public override bool AddBill(ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_ProcessPlanMain " + |
| | | "(HYear,HPeriod,HBillType,HBillSubType,HInterID" + |
| | | ",HDate,HBillNo,HBillStatus,HCheckItemNowID,HCheckItemNextID" + |
| | | ",HICMOInterID,HICMOBillNo,HMaterID,HMaterNumber,HUnitID" + |
| | | ",HUnitNumber,HPlanQty,HPlanBeginDate,HPlanEndDate,HExplanation" + |
| | | ",HRemark,HInnerBillNo,HMaker,HMakeDate" + |
| | | ") " + |
| | | " values(" + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + this.BillType + "','" + omodel.HBillSubType + "'," + omodel.HInterID.ToString() + |
| | | ",'" + omodel.HDate.ToShortDateString() + "','" + omodel.HBillNo + "'," + omodel.HBillStatus.ToString() + "," + omodel.HCheckItemNowID.ToString() + "," + omodel.HCheckItemNextID.ToString() + |
| | | "," + omodel.HICMOInterID.ToString() + ",'" + omodel.HICMOBillNo + "'," + omodel.HMaterID.ToString() + ",'" + omodel.HMaterNumber + "'," + omodel.HUnitID.ToString() + |
| | | ",'" + omodel.HUnitNumber + "'," + omodel.HPlanQty.ToString() + ",'" + omodel.HPlanBeginDate.ToShortDateString() + "','" + omodel.HPlanEndDate.ToShortDateString() + "','" + omodel.HExplanation +"'"+ |
| | | ",'" + omodel.HRemark + "','" + omodel.HInnerBillNo + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Models.ClsSc_ProcessPlanSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_ProcessPlanSub " + |
| | | " (HInterID,HEntryID,HBillNo,HProcNo,HProcID,HWorkingQty" + |
| | | ",HProcNumber,HWorkRemark,HCenterID,HDeptID,HDeptNumber" + |
| | | ",HGroupID,HGroupNumber,HWorkerID,HWorkerNumber,HSourceID" + |
| | | ",HQty,HTimeUnit,HPlanWorkTimes,HPlanBeginDate,HPlanEndDate" + |
| | | ",HICMOInterID,HICMOBillNo,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | | ",HCloseMan,HCloseType,HRemark,HSourceInterID,HSourceEntryID" + |
| | | ",HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HBeginDayQty,HBeginFixQty,HFixWorkDays,HTrunWorkDays,HReadyTimes" + |
| | | ",HReadyTime,HQueueTime,HMoveTime,HBatchNo" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HBillNo + "'," + oSub.HProcNo.ToString() + "," + oSub.HProcID.ToString() + "," + oSub.HWorkingQty.ToString() + |
| | | ",'" + oSub.HProcNumber + "','" + oSub.HWorkRemark + "'," + oSub.HCenterID.ToString() + "," + oSub.HDeptID.ToString() + ",'" + oSub.HDeptNumber + "'" + |
| | | "," + oSub.HGroupID.ToString() + ",'" + oSub.HGroupNumber + "'," + oSub.HWorkerID.ToString() + ",'" + oSub.HWorkerNumber + "'," + oSub.HSourceID.ToString() + |
| | | "," + oSub.HQty.ToString() + ",'" + oSub.HTimeUnit + "'," + oSub.HPlanWorkTimes.ToString() + ",'" + oSub.HPlanBeginDate + "','" + oSub.HPlanEndDate + "'" + |
| | | "," + oSub.HICMOInterID.ToString() + ",'" + oSub.HICMOBillNo + "'," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |
| | | ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + |
| | | ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HBeginDayQty.ToString() + "," + oSub.HBeginFixQty.ToString() + "," + oSub.HFixWorkDays.ToString() + "," + oSub.HTrunWorkDays.ToString() + "," + oSub.HReadyTimes.ToString() + |
| | | "," + oSub.HReadyTime.ToString() + "," + oSub.HQueueTime.ToString() + "," + oSub.HMoveTime.ToString() + ",'" +oSub.HBatchNo + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //æ¥è¯¢ä¸»è¡¨ |
| | | DataSet Ds ; |
| | | Ds = oCn.RunProcReturn("Select * from Sc_ProcessPlanMain Where HInterID=" + lngBillKey.ToString(), "Sc_ProcessPlanMain"); |
| | | if(Ds.Tables[0].Rows.Count==0) |
| | | { |
| | | sReturn = "åæ®æªæ¾å°ï¼"; |
| | | return false; |
| | | } |
| | | //èµå¼ |
| | | omodel.HYear = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HYear"]); |
| | | omodel.HPeriod = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPeriod"]); |
| | | omodel.HBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillType"]); |
| | | omodel.HBillSubType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillSubType"]); |
| | | omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]); |
| | | omodel.HDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HDate"]); |
| | | omodel.HBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); |
| | | omodel.HBillStatus = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HBillStatus"]); |
| | | omodel.HCheckItemNowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNowID"]); |
| | | omodel.HCheckItemNextID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNextID"]); |
| | | // |
| | | omodel.HICMOInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HICMOInterID"]); |
| | | omodel.HICMOBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HICMOBillNo"]); |
| | | omodel.HMaterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMaterID"]); |
| | | omodel.HMaterNumber = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaterNumber"]); |
| | | omodel.HUnitID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HUnitID"]); |
| | | omodel.HUnitNumber = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUnitNumber"]); |
| | | omodel.HPlanQty = DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["HPlanQty"]); |
| | | omodel.HPlanBeginDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HPlanBeginDate"]); |
| | | omodel.HPlanEndDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HPlanEndDate"]); |
| | | omodel.HExplanation = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HExplanation"]); |
| | | omodel.HRemark = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); |
| | | omodel.HInnerBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HInnerBillNo"]); |
| | | // |
| | | omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); |
| | | omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); |
| | | omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); |
| | | omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); |
| | | omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); |
| | | omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); |
| | | omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); |
| | | omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); |
| | | omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); |
| | | omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); |
| | | omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); |
| | | omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); |
| | | omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); |
| | | //å¾ªç¯ |
| | | DataSet DsSub ; |
| | | DsSub = oCn.RunProcReturn("Select * from Sc_ProcessPlanSub Where HInterID=" + lngBillKey.ToString() + " order by HEntryID ", "Sc_ProcessPlanSub"); |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Models.ClsSc_ProcessPlanSub oSub = new Models.ClsSc_ProcessPlanSub(); |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |
| | | // |
| | | oSub.HBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo"]); |
| | | oSub.HBatchNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBatchNo"]); |
| | | oSub.HProcNo = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HProcNo"]); |
| | | oSub.HProcID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HProcID"]); |
| | | oSub.HProcNumber = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcNumber"]); |
| | | oSub.HWorkRemark = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HWorkRemark"]); |
| | | oSub.HCenterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HCenterID"]); |
| | | oSub.HDeptID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HDeptID"]); |
| | | oSub.HDeptNumber = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HDeptNumber"]); |
| | | oSub.HGroupID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HGroupID"]); |
| | | oSub.HGroupNumber = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HGroupNumber"]); |
| | | oSub.HWorkerID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HWorkerID"]); |
| | | oSub.HWorkerNumber = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HWorkerNumber"]); |
| | | oSub.HSourceID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceID"]); |
| | | oSub.HQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HQty"]); |
| | | oSub.HTimeUnit = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HTimeUnit"]); |
| | | oSub.HPlanWorkTimes = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HPlanWorkTimes"]); |
| | | oSub.HPlanBeginDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HPlanBeginDate"]); |
| | | oSub.HPlanEndDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HPlanEndDate"]); |
| | | oSub.HICMOInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HICMOInterID"]); |
| | | oSub.HICMOBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HICMOBillNo"]); |
| | | oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSeOrderInterID"]); |
| | | oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSeOrderEntryID"]); |
| | | oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSeOrderBillNo"]); |
| | | oSub.HWorkingQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HWorkingQty"]); |
| | | // |
| | | oSub.HCloseMan = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HCloseMan"]); |
| | | oSub.HCloseType = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HCloseType"]); |
| | | oSub.HRemark = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); |
| | | oSub.HSourceInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceInterID"]); |
| | | oSub.HSourceEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceEntryID"]); |
| | | oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); |
| | | oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); |
| | | oSub.HRelationQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationQty"]); |
| | | oSub.HRelationMoney = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationMoney"]); |
| | | oSub.HBeginDayQty = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HBeginDayQty"]); |
| | | oSub.HBeginFixQty = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HBeginFixQty"]); |
| | | oSub.HFixWorkDays = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HFixWorkDays"]); |
| | | oSub.HTrunWorkDays = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HTrunWorkDays"]); |
| | | oSub.HReadyTimes = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HReadyTimes"]); |
| | | oSub.HReadyTime = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HReadyTime"]); |
| | | oSub.HQueueTime = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HQueueTime"]); |
| | | oSub.HMoveTime = DBUtility.ClsPub.isSingle(DsSub.Tables[0].Rows[i]["HMoveTime"]); |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsSb_EquipRepairSendWorkBillMain : DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public Int64 HEquipID; |
| | | public Int64 HRepairID; |
| | | public Int64 HPlanTimes; |
| | | public DateTime HRepairPlanBeginDate; |
| | | public DateTime HRepairPlanEndDate; |
| | | public Int64 HEmpID; |
| | | public Int64 HManagerID; |
| | | public Int64 HDeptID; |
| | | public string HCycleUnit; |
| | | public string HRepairContent; |
| | | public string HExplanation; |
| | | public string HInnerBillNo; |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsSb_EquipRepairSendWorkBillSub : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | //============ |
| | | public Int64 HRepairID; |
| | | public string HRepairExplanation; |
| | | public Int64 HManagerID; |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsSc_ProcessPlanMain : DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public string HBillSubType;// varchar(10) --ç±»å(æ®é) |
| | | public Int64 HCheckItemNowID;// int --å½åå®¡æ ¸é¡¹ç®ï¼é»è®¤å¼ 0ï¼ |
| | | public Int64 HCheckItemNextID;// int --å¾
å®¡æ ¸é¡¹ç®ï¼é»è®¤å¼ 0ï¼ |
| | | public Int64 HICMOInterID;// int --ä»»å¡åIDï¼çé¢ä¸æ¾ç¤ºï¼ |
| | | public string HICMOBillNo;// varchar(50) --ä»»å¡åå· |
| | | public Int64 HMaterID;// int --产åID |
| | | public string HMaterNumber;// varchar(100) --产å代ç |
| | | public Int64 HUnitID;// int --åä½ID |
| | | public string HUnitNumber;// varchar(50) --åä½ä»£ç |
| | | public double HPlanQty;// dec(18,8) --ç产æ°é |
| | | public DateTime HPlanBeginDate;// datetime --计åå¼å·¥æ¥æ |
| | | public DateTime HPlanEndDate;// datetime --计åå®å·¥æ¥æ |
| | | public string HExplanation;// varchar(500) --ÕªÒª |
| | | public string HInnerBillNo;// varchar(50) --å
é¨åæ®å· |
| | | public bool HCloseType;// bit --å
³éç±»å ï¼é»è®¤ä¸º0ï¼ |
| | | |
| | | |
| | | public int HWorkerID; |
| | | public int HProcNo; |
| | | public int HProcID; |
| | | public int HGroupID; |
| | | public int HDeptID; |
| | | public int HQty; |
| | | public int HSourceInterID;// int --æºåå
ç |
| | | public int HSourceEntryID;// int --æºååå
ç |
| | | public string HSourceBillNo;// varchar(50) --æºåå· |
| | | public string HSourceBillType;// varchar(10) --æºåç±»å |
| | | public int HSourceID; |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsSc_ProcessPlanSub : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public string HBillNo;// varchar(50) --å·¥åºè®¡ååå·ï¼ä¸å¯ç¼è¾ï¼èªå¨çæï¼ |
| | | public Int64 HProcNo;// int --å·¥åºå· |
| | | public Int64 HProcID;// int --å·¥åº |
| | | public string HProcNumber;// varchar(50) --å·¥åºä»£ç |
| | | public string HWorkRemark;// varchar(200) --å 工说æ |
| | | public Int64 HCenterID;// int --å·¥ä½ä¸å¿ID |
| | | public Int64 HDeptID;// int --å 工车é´ï¼é¨é¨IDï¼ |
| | | public string HDeptNumber;// varchar(50) --å 工车é´ä»£ç ï¼é¨é¨ä»£ç ï¼ |
| | | public Int64 HGroupID;// int --çç»ID |
| | | public string HGroupNumber;// varchar(50) --çç»ä»£ç |
| | | public Int64 HWorkerID;// int --æä½å·¥ID |
| | | public string HWorkerNumber;// varchar(50) --æä½å·¥ä»£ç |
| | | public Int64 HSourceID;// int --çäº§èµæºID |
| | | public double HQty;// dec(18,8) --è®¡åæ°é |
| | | public string HTimeUnit;// varchar(50) --æ¶é´åä½ï¼å°æ¶,åéï¼ |
| | | public Single HPlanWorkTimes;// money --å·¥åºè®¡åå å·¥æ¶é´ |
| | | public DateTime? HPlanBeginDate;// datetime --å·¥åºè®¡åå¼å·¥æ¥æ |
| | | public DateTime? HPlanEndDate;// datetime --计åå®å·¥æ¥æ |
| | | public Int64 HICMOInterID;// int --ä»»å¡åID |
| | | public string HICMOBillNo;// varchar(50) --ä»»å¡åå· |
| | | public Int64 HSeOrderInterID;// int --éå®è®¢å主ID |
| | | public Int64 HSeOrderEntryID;// int --éå®åID |
| | | public string HSeOrderBillNo;// varchar(50) --éå®è®¢åå· |
| | | public string HRemark;// --夿³¨ |
| | | public string HBatchNo;// -- |
| | | public double HWorkingQty; |
| | | //æ°å¢ |
| | | public Single HBeginDayQty; //money --å¼å·¥ä½éï¼å¤©æ°) addnew |
| | | public Single HBeginFixQty; //money --å¼å·¥ä½éï¼åºæ°ï¼ addnew |
| | | public Single HFixWorkDays; //money --ä¸éåºå®å¤©æ° addnew |
| | | public Single HTrunWorkDays; //money --ä¸é循ç¯å¨æ(æä¸ç¨) addnew |
| | | public Single HReadyTimes; //money --æ¬éå夿¶é´(æä¸ç¨) addnew |
| | | public Single HReadyTime; //money --å夿¶é´ï¼ é»è®¤ä¸º0ï¼ addnew |
| | | public Single HQueueTime; //money --æéæ¶é´ï¼ é»è®¤ä¸º0ï¼ addnew |
| | | public Single HMoveTime; //money --转移æ¶é´ï¼ é»è®¤ä¸º0ï¼ addnew |
| | | } |
| | | } |
| | |
| | | <Compile Include="Controllers\CJGL\Cj_StationOutBillController.cs" /> |
| | | <Compile Include="Controllers\CJGL\Cj_StationInBillController.cs" /> |
| | | <Compile Include="Controllers\CJGL\Cj_StationEntrustOutBillController.cs" /> |
| | | <Compile Include="Controllers\Sc_PckSplitBillController.cs" /> |
| | | <Compile Include="Controllers\GZGL\Gy_DuSubsidyItemBillController.cs" /> |
| | | <Compile Include="Controllers\GZGL\Gy_WorkPayTypeBillController.cs" /> |
| | | <Compile Include="Controllers\GZGL\Gy_WorkTypeBillController.cs" /> |
| | |
| | | <Compile Include="DLL\ClsSb_EquipMaintainBill.cs" /> |
| | | <Compile Include="DLL\ClsSb_EquipMaintainRuleBill.cs" /> |
| | | <Compile Include="DLL\ClsSb_EquipRepairCheckBill.cs" /> |
| | | <Compile Include="DLL\ClsSb_EquipRepairSendWorkBill.cs" /> |
| | | <Compile Include="DLL\ClsSb_EquipRepairWorkBill.cs" /> |
| | | <Compile Include="DLL\ClsSb_MouldRepairWorkBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_ICMOBillWorkQtyStatus_Tmp.cs" /> |
| | |
| | | <Compile Include="DLL\ClsSc_MouldOtherInBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_MouldMoveStockStepOutBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_PackUnionBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_ProcessPlan.cs" /> |
| | | <Compile Include="DLL\ClsWW_PPBomBill.cs" /> |
| | | <Compile Include="DLL\å·¥èµç®¡ç\ClsPay_GroupBalBill.cs" /> |
| | | <Compile Include="DLL\å·¥èµç®¡ç\ClsGy_GroupEmpBill.cs" /> |
| | |
| | | <Compile Include="InvokeHelper.cs" /> |
| | | <Compile Include="Log.cs" /> |
| | | <Compile Include="Models\ClsGy_StockCheckItemBill.cs" /> |
| | | <Compile Include="Models\ClsSb_EquipRepairSendWorkBillMain.cs" /> |
| | | <Compile Include="Models\ClsSb_EquipRepairSendWorkBillSub.cs" /> |
| | | <Compile Include="Models\ClsSb_MouldRepairWorkBillMain.cs" /> |
| | | <Compile Include="Models\ClsSb_MouldRepairWorkBillSub.cs" /> |
| | | <Compile Include="Models\ClsSc_PackUnionBillMain.cs" /> |
| | | <Compile Include="Models\ClsSc_PackUnionBillSub.cs" /> |
| | | <Compile Include="Models\ClsSc_ProcessPlanMain.cs" /> |
| | | <Compile Include="Models\ClsSc_ProcessPlanSub.cs" /> |
| | | <Compile Include="Models\ClsSc_ProcessReportMain.cs" /> |
| | | <Compile Include="Models\ClsSc_ProcessReportSub.cs" /> |
| | | <Compile Include="Models\ClsWW_PPBomBillMain.cs" /> |
| | |
| | | <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> |
| | | <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\Git\houduan\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºMES\Lay-Api\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>false</UseIISExpress> |
| | | <Use64BitIISExpress /> |