From 43efa9e547e6c7dc79767571c0186707519e4702 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期二, 25 十月 2022 23:47:05 +0800 Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API --- WebAPI/Controllers/SCGL/Sc_ComplementGoodsController.cs | 4 WebAPI/Controllers/仓存管理/条码生成/Sc_BarCodeController.cs | 97 ++++++++ WebAPI/Controllers/SCGL/Sc_ComplementGoodBillController.cs | 250 ++++++++++++++++++++ WarM/条码打印/Gy_BarCodeBill.designer.cs | 289 ++++++++++++++---------- WarM/条码打印/Gy_BarCodeBill.resx | 32 +- WebAPI/Controllers/PublicPageMethodController.cs | 27 ++ 6 files changed, 560 insertions(+), 139 deletions(-) diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.designer.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.designer.cs" index 13b91ee..332204e 100644 --- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.designer.cs" +++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.designer.cs" @@ -164,7 +164,7 @@ this.Tool.Location = new System.Drawing.Point(0, 0); this.Tool.Name = "Tool"; this.Tool.Padding = new System.Windows.Forms.Padding(0); - this.Tool.Size = new System.Drawing.Size(1017, 50); + this.Tool.Size = new System.Drawing.Size(1356, 62); this.Tool.Stretch = true; this.Tool.TabIndex = 17; this.Tool.Text = "toolStrip1"; @@ -214,7 +214,7 @@ // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator2.Size = new System.Drawing.Size(6, 62); // // AddRow // @@ -276,13 +276,13 @@ // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator4.Size = new System.Drawing.Size(6, 62); this.toolStripSeparator4.Visible = false; // // toolStripSeparator8 // this.toolStripSeparator8.Name = "toolStripSeparator8"; - this.toolStripSeparator8.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator8.Size = new System.Drawing.Size(6, 62); // // wxm // @@ -301,7 +301,7 @@ // toolStripSeparator9 // this.toolStripSeparator9.Name = "toolStripSeparator9"; - this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator9.Size = new System.Drawing.Size(6, 62); // // cz // @@ -320,7 +320,7 @@ // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator5.Size = new System.Drawing.Size(6, 62); // // kc // @@ -339,13 +339,13 @@ // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 62); // // toolStripSeparator12 // this.toolStripSeparator12.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator12.Name = "toolStripSeparator12"; - this.toolStripSeparator12.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator12.Size = new System.Drawing.Size(6, 62); // // mrlk // @@ -355,7 +355,7 @@ this.mrlk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.mrlk.ImageTransparentColor = System.Drawing.Color.White; this.mrlk.Name = "mrlk"; - this.mrlk.Size = new System.Drawing.Size(60, 47); + this.mrlk.Size = new System.Drawing.Size(73, 59); this.mrlk.Text = "榛樿鍒楀"; this.mrlk.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.mrlk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; @@ -365,7 +365,7 @@ // this.toolStripSeparator11.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator11.Name = "toolStripSeparator11"; - this.toolStripSeparator11.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator11.Size = new System.Drawing.Size(6, 62); // // bclk // @@ -375,7 +375,7 @@ this.bclk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.bclk.ImageTransparentColor = System.Drawing.Color.White; this.bclk.Name = "bclk"; - this.bclk.Size = new System.Drawing.Size(60, 47); + this.bclk.Size = new System.Drawing.Size(73, 59); this.bclk.Text = "淇濆瓨鍒楀"; this.bclk.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.bclk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; @@ -385,7 +385,7 @@ // this.toolStripSeparator10.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator10.Name = "toolStripSeparator10"; - this.toolStripSeparator10.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator10.Size = new System.Drawing.Size(6, 62); // // tb // @@ -405,7 +405,7 @@ // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator6.Size = new System.Drawing.Size(6, 62); // // gl // @@ -424,7 +424,7 @@ // toolStripSeparator7 // this.toolStripSeparator7.Name = "toolStripSeparator7"; - this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator7.Size = new System.Drawing.Size(6, 62); // // BatchNo // @@ -443,7 +443,7 @@ // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50); + this.toolStripSeparator3.Size = new System.Drawing.Size(6, 62); // // tc // @@ -463,9 +463,10 @@ // this.lblCaption.AutoSize = true; this.lblCaption.Font = new System.Drawing.Font("瀹嬩綋", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblCaption.Location = new System.Drawing.Point(501, 12); + this.lblCaption.Location = new System.Drawing.Point(668, 15); + this.lblCaption.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblCaption.Name = "lblCaption"; - this.lblCaption.Size = new System.Drawing.Size(89, 19); + this.lblCaption.Size = new System.Drawing.Size(110, 24); this.lblCaption.TabIndex = 18; this.lblCaption.Text = "鍗曟嵁缂栬緫"; // @@ -476,16 +477,18 @@ this.P1.Controls.Add(this.lblCaption); this.P1.Controls.Add(this.gbUp); this.P1.Dock = System.Windows.Forms.DockStyle.Top; - this.P1.Location = new System.Drawing.Point(41, 50); + this.P1.Location = new System.Drawing.Point(55, 62); + this.P1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.P1.Name = "P1"; - this.P1.Size = new System.Drawing.Size(937, 137); + this.P1.Size = new System.Drawing.Size(1249, 171); this.P1.TabIndex = 31; // // pic1 // - this.pic1.Location = new System.Drawing.Point(313, 3); + this.pic1.Location = new System.Drawing.Point(417, 4); + this.pic1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.pic1.Name = "pic1"; - this.pic1.Size = new System.Drawing.Size(78, 41); + this.pic1.Size = new System.Drawing.Size(104, 51); this.pic1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pic1.TabIndex = 36; this.pic1.TabStop = false; @@ -508,9 +511,11 @@ this.gbUp.Controls.Add(this.label14); this.gbUp.Controls.Add(this.cmbSourceBillType); this.gbUp.Controls.Add(this.label10); - this.gbUp.Location = new System.Drawing.Point(14, 39); + this.gbUp.Location = new System.Drawing.Point(19, 49); + this.gbUp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.gbUp.Name = "gbUp"; - this.gbUp.Size = new System.Drawing.Size(892, 80); + this.gbUp.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.gbUp.Size = new System.Drawing.Size(1189, 100); this.gbUp.TabIndex = 33; this.gbUp.TabStop = false; // @@ -518,37 +523,38 @@ // this.cmbHWorksNumber.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbHWorksNumber.FormattingEnabled = true; - this.cmbHWorksNumber.Location = new System.Drawing.Point(394, 17); + this.cmbHWorksNumber.Location = new System.Drawing.Point(525, 21); + this.cmbHWorksNumber.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbHWorksNumber.Name = "cmbHWorksNumber"; - this.cmbHWorksNumber.Size = new System.Drawing.Size(188, 20); + this.cmbHWorksNumber.Size = new System.Drawing.Size(249, 23); this.cmbHWorksNumber.TabIndex = 98; // // label4 // this.label4.AutoSize = true; this.label4.ForeColor = System.Drawing.Color.Black; - this.label4.Location = new System.Drawing.Point(327, 21); + this.label4.Location = new System.Drawing.Point(436, 26); + this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.Size = new System.Drawing.Size(67, 15); this.label4.TabIndex = 97; this.label4.Text = "宸ュ巶浠g爜"; // // dtpHDate // this.dtpHDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; - this.dtpHDate.Location = new System.Drawing.Point(676, 17); - this.dtpHDate.Margin = new System.Windows.Forms.Padding(2); + this.dtpHDate.Location = new System.Drawing.Point(901, 21); + this.dtpHDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.dtpHDate.Name = "dtpHDate"; - this.dtpHDate.Size = new System.Drawing.Size(188, 21); + this.dtpHDate.Size = new System.Drawing.Size(249, 25); this.dtpHDate.TabIndex = 96; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(609, 21); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Location = new System.Drawing.Point(812, 26); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.Size = new System.Drawing.Size(69, 15); this.label2.TabIndex = 95; this.label2.Text = "鏃� 鏈�"; // @@ -556,18 +562,20 @@ // this.cmbHOrgID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbHOrgID.FormattingEnabled = true; - this.cmbHOrgID.Location = new System.Drawing.Point(101, 17); + this.cmbHOrgID.Location = new System.Drawing.Point(135, 21); + this.cmbHOrgID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbHOrgID.Name = "cmbHOrgID"; - this.cmbHOrgID.Size = new System.Drawing.Size(188, 20); + this.cmbHOrgID.Size = new System.Drawing.Size(249, 23); this.cmbHOrgID.TabIndex = 85; // // label3 // this.label3.AutoSize = true; this.label3.ForeColor = System.Drawing.Color.Black; - this.label3.Location = new System.Drawing.Point(35, 21); + this.label3.Location = new System.Drawing.Point(47, 26); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.Size = new System.Drawing.Size(69, 15); this.label3.TabIndex = 84; this.label3.Text = "缁� 缁�"; // @@ -575,18 +583,20 @@ // this.cmbHBarCodeType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbHBarCodeType.FormattingEnabled = true; - this.cmbHBarCodeType.Location = new System.Drawing.Point(676, 46); + this.cmbHBarCodeType.Location = new System.Drawing.Point(901, 58); + this.cmbHBarCodeType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbHBarCodeType.Name = "cmbHBarCodeType"; - this.cmbHBarCodeType.Size = new System.Drawing.Size(188, 20); + this.cmbHBarCodeType.Size = new System.Drawing.Size(249, 23); this.cmbHBarCodeType.TabIndex = 81; // // label1 // this.label1.AutoSize = true; this.label1.ForeColor = System.Drawing.Color.Black; - this.label1.Location = new System.Drawing.Point(609, 50); + this.label1.Location = new System.Drawing.Point(812, 62); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.Size = new System.Drawing.Size(67, 15); this.label1.TabIndex = 80; this.label1.Text = "鏉$爜绫诲瀷"; // @@ -595,9 +605,10 @@ this.cmdHEmpID.BackColor = System.Drawing.Color.Transparent; this.cmdHEmpID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHEmpID.Image"))); this.cmdHEmpID.ImageAlign = System.Drawing.ContentAlignment.TopRight; - this.cmdHEmpID.Location = new System.Drawing.Point(892, -7); + this.cmdHEmpID.Location = new System.Drawing.Point(1189, -9); + this.cmdHEmpID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmdHEmpID.Name = "cmdHEmpID"; - this.cmdHEmpID.Size = new System.Drawing.Size(22, 22); + this.cmdHEmpID.Size = new System.Drawing.Size(29, 28); this.cmdHEmpID.TabIndex = 79; this.cmdHEmpID.UseVisualStyleBackColor = false; this.cmdHEmpID.Visible = false; @@ -606,9 +617,10 @@ // this.cmdSourceBillNo.Image = ((System.Drawing.Image)(resources.GetObject("cmdSourceBillNo.Image"))); this.cmdSourceBillNo.ImageAlign = System.Drawing.ContentAlignment.TopRight; - this.cmdSourceBillNo.Location = new System.Drawing.Point(560, 45); + this.cmdSourceBillNo.Location = new System.Drawing.Point(747, 56); + this.cmdSourceBillNo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmdSourceBillNo.Name = "cmdSourceBillNo"; - this.cmdSourceBillNo.Size = new System.Drawing.Size(22, 22); + this.cmdSourceBillNo.Size = new System.Drawing.Size(29, 28); this.cmdSourceBillNo.TabIndex = 42; this.cmdSourceBillNo.UseVisualStyleBackColor = true; this.cmdSourceBillNo.Click += new System.EventHandler(this.cmdSourceBillNo_Click); @@ -616,9 +628,10 @@ // txtHSourceBillNo // this.txtHSourceBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.txtHSourceBillNo.Location = new System.Drawing.Point(394, 46); + this.txtHSourceBillNo.Location = new System.Drawing.Point(525, 58); + this.txtHSourceBillNo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtHSourceBillNo.Name = "txtHSourceBillNo"; - this.txtHSourceBillNo.Size = new System.Drawing.Size(166, 21); + this.txtHSourceBillNo.Size = new System.Drawing.Size(220, 25); this.txtHSourceBillNo.TabIndex = 41; this.txtHSourceBillNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtHSourceBillNo_KeyPress); // @@ -626,9 +639,10 @@ // this.label14.AutoSize = true; this.label14.ForeColor = System.Drawing.Color.Black; - this.label14.Location = new System.Drawing.Point(327, 50); + this.label14.Location = new System.Drawing.Point(436, 62); + this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(53, 12); + this.label14.Size = new System.Drawing.Size(68, 15); this.label14.TabIndex = 40; this.label14.Text = "閫� 鍗� 鍙�"; // @@ -637,18 +651,20 @@ this.cmbSourceBillType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbSourceBillType.FormattingEnabled = true; this.cmbSourceBillType.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.cmbSourceBillType.Location = new System.Drawing.Point(101, 46); + this.cmbSourceBillType.Location = new System.Drawing.Point(135, 58); + this.cmbSourceBillType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbSourceBillType.Name = "cmbSourceBillType"; - this.cmbSourceBillType.Size = new System.Drawing.Size(188, 20); + this.cmbSourceBillType.Size = new System.Drawing.Size(249, 23); this.cmbSourceBillType.TabIndex = 36; // // label10 // this.label10.AutoSize = true; this.label10.ForeColor = System.Drawing.Color.Black; - this.label10.Location = new System.Drawing.Point(35, 50); + this.label10.Location = new System.Drawing.Point(47, 62); + this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(53, 12); + this.label10.Size = new System.Drawing.Size(67, 15); this.label10.TabIndex = 35; this.label10.Text = "婧愬崟绫诲瀷"; // @@ -676,18 +692,20 @@ this.panel2.Controls.Add(this.txtHMaker); this.panel2.Controls.Add(this.label8); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panel2.Location = new System.Drawing.Point(41, 506); + this.panel2.Location = new System.Drawing.Point(55, 633); + this.panel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(937, 93); + this.panel2.Size = new System.Drawing.Size(1249, 116); this.panel2.TabIndex = 32; // // txtHDeleteDate // this.txtHDeleteDate.BackColor = System.Drawing.Color.Transparent; this.txtHDeleteDate.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHDeleteDate.Location = new System.Drawing.Point(725, 47); + this.txtHDeleteDate.Location = new System.Drawing.Point(967, 59); + this.txtHDeleteDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHDeleteDate.Name = "txtHDeleteDate"; - this.txtHDeleteDate.Size = new System.Drawing.Size(98, 15); + this.txtHDeleteDate.Size = new System.Drawing.Size(131, 19); this.txtHDeleteDate.TabIndex = 19; // // label25 @@ -695,9 +713,10 @@ this.label25.AutoSize = true; this.label25.BackColor = System.Drawing.Color.Transparent; this.label25.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label25.Location = new System.Drawing.Point(666, 50); + this.label25.Location = new System.Drawing.Point(888, 62); + this.label25.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(53, 12); + this.label25.Size = new System.Drawing.Size(67, 15); this.label25.TabIndex = 18; this.label25.Text = "浣滃簾鏃ユ湡"; // @@ -705,9 +724,10 @@ // this.txtHDeleteMan.BackColor = System.Drawing.Color.Transparent; this.txtHDeleteMan.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHDeleteMan.Location = new System.Drawing.Point(725, 12); + this.txtHDeleteMan.Location = new System.Drawing.Point(967, 15); + this.txtHDeleteMan.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHDeleteMan.Name = "txtHDeleteMan"; - this.txtHDeleteMan.Size = new System.Drawing.Size(98, 15); + this.txtHDeleteMan.Size = new System.Drawing.Size(131, 19); this.txtHDeleteMan.TabIndex = 17; // // label27 @@ -715,9 +735,10 @@ this.label27.AutoSize = true; this.label27.BackColor = System.Drawing.Color.Transparent; this.label27.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label27.Location = new System.Drawing.Point(666, 12); + this.label27.Location = new System.Drawing.Point(888, 15); + this.label27.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(41, 12); + this.label27.Size = new System.Drawing.Size(52, 15); this.label27.TabIndex = 16; this.label27.Text = "浣滃簾浜�"; // @@ -725,9 +746,10 @@ // this.txtHUpDateDate.BackColor = System.Drawing.Color.Transparent; this.txtHUpDateDate.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHUpDateDate.Location = new System.Drawing.Point(562, 47); + this.txtHUpDateDate.Location = new System.Drawing.Point(749, 59); + this.txtHUpDateDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHUpDateDate.Name = "txtHUpDateDate"; - this.txtHUpDateDate.Size = new System.Drawing.Size(98, 15); + this.txtHUpDateDate.Size = new System.Drawing.Size(131, 19); this.txtHUpDateDate.TabIndex = 15; // // label23 @@ -735,9 +757,10 @@ this.label23.AutoSize = true; this.label23.BackColor = System.Drawing.Color.Transparent; this.label23.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label23.Location = new System.Drawing.Point(503, 47); + this.label23.Location = new System.Drawing.Point(671, 59); + this.label23.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(53, 12); + this.label23.Size = new System.Drawing.Size(67, 15); this.label23.TabIndex = 14; this.label23.Text = "淇敼鏃ユ湡"; // @@ -745,9 +768,10 @@ // this.txtHUpDater.BackColor = System.Drawing.Color.Transparent; this.txtHUpDater.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHUpDater.Location = new System.Drawing.Point(562, 12); + this.txtHUpDater.Location = new System.Drawing.Point(749, 15); + this.txtHUpDater.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHUpDater.Name = "txtHUpDater"; - this.txtHUpDater.Size = new System.Drawing.Size(98, 15); + this.txtHUpDater.Size = new System.Drawing.Size(131, 19); this.txtHUpDater.TabIndex = 13; // // label21 @@ -755,9 +779,10 @@ this.label21.AutoSize = true; this.label21.BackColor = System.Drawing.Color.Transparent; this.label21.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label21.Location = new System.Drawing.Point(503, 12); + this.label21.Location = new System.Drawing.Point(671, 15); + this.label21.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(41, 12); + this.label21.Size = new System.Drawing.Size(52, 15); this.label21.TabIndex = 12; this.label21.Text = "淇敼浜�"; // @@ -765,9 +790,10 @@ // this.txtHCloseDate.BackColor = System.Drawing.Color.Transparent; this.txtHCloseDate.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHCloseDate.Location = new System.Drawing.Point(397, 47); + this.txtHCloseDate.Location = new System.Drawing.Point(529, 59); + this.txtHCloseDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHCloseDate.Name = "txtHCloseDate"; - this.txtHCloseDate.Size = new System.Drawing.Size(98, 15); + this.txtHCloseDate.Size = new System.Drawing.Size(131, 19); this.txtHCloseDate.TabIndex = 11; // // label19 @@ -775,9 +801,10 @@ this.label19.AutoSize = true; this.label19.BackColor = System.Drawing.Color.Transparent; this.label19.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label19.Location = new System.Drawing.Point(338, 50); + this.label19.Location = new System.Drawing.Point(451, 62); + this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(53, 12); + this.label19.Size = new System.Drawing.Size(67, 15); this.label19.TabIndex = 10; this.label19.Text = "鍏抽棴鏃ユ湡"; // @@ -785,9 +812,10 @@ // this.txtHCloseMan.BackColor = System.Drawing.Color.Transparent; this.txtHCloseMan.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHCloseMan.Location = new System.Drawing.Point(396, 13); + this.txtHCloseMan.Location = new System.Drawing.Point(528, 16); + this.txtHCloseMan.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHCloseMan.Name = "txtHCloseMan"; - this.txtHCloseMan.Size = new System.Drawing.Size(98, 15); + this.txtHCloseMan.Size = new System.Drawing.Size(131, 19); this.txtHCloseMan.TabIndex = 9; // // label17 @@ -795,9 +823,10 @@ this.label17.AutoSize = true; this.label17.BackColor = System.Drawing.Color.Transparent; this.label17.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label17.Location = new System.Drawing.Point(338, 16); + this.label17.Location = new System.Drawing.Point(451, 20); + this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(41, 12); + this.label17.Size = new System.Drawing.Size(52, 15); this.label17.TabIndex = 8; this.label17.Text = "鍏抽棴浜�"; // @@ -805,9 +834,10 @@ // this.txtHCheckDate.BackColor = System.Drawing.Color.Transparent; this.txtHCheckDate.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHCheckDate.Location = new System.Drawing.Point(234, 47); + this.txtHCheckDate.Location = new System.Drawing.Point(312, 59); + this.txtHCheckDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHCheckDate.Name = "txtHCheckDate"; - this.txtHCheckDate.Size = new System.Drawing.Size(98, 15); + this.txtHCheckDate.Size = new System.Drawing.Size(131, 19); this.txtHCheckDate.TabIndex = 7; // // label15 @@ -815,9 +845,10 @@ this.label15.AutoSize = true; this.label15.BackColor = System.Drawing.Color.Transparent; this.label15.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label15.Location = new System.Drawing.Point(175, 50); + this.label15.Location = new System.Drawing.Point(233, 62); + this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(53, 12); + this.label15.Size = new System.Drawing.Size(67, 15); this.label15.TabIndex = 6; this.label15.Text = "瀹℃牳鏃ユ湡"; // @@ -825,9 +856,10 @@ // this.txtHChecker.BackColor = System.Drawing.Color.Transparent; this.txtHChecker.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHChecker.Location = new System.Drawing.Point(234, 13); + this.txtHChecker.Location = new System.Drawing.Point(312, 16); + this.txtHChecker.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHChecker.Name = "txtHChecker"; - this.txtHChecker.Size = new System.Drawing.Size(98, 15); + this.txtHChecker.Size = new System.Drawing.Size(131, 19); this.txtHChecker.TabIndex = 5; // // label13 @@ -835,9 +867,10 @@ this.label13.AutoSize = true; this.label13.BackColor = System.Drawing.Color.Transparent; this.label13.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label13.Location = new System.Drawing.Point(175, 16); + this.label13.Location = new System.Drawing.Point(233, 20); + this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(41, 12); + this.label13.Size = new System.Drawing.Size(52, 15); this.label13.TabIndex = 4; this.label13.Text = "瀹℃牳浜�"; // @@ -845,9 +878,10 @@ // this.txtHMakeDate.BackColor = System.Drawing.Color.Transparent; this.txtHMakeDate.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHMakeDate.Location = new System.Drawing.Point(71, 47); + this.txtHMakeDate.Location = new System.Drawing.Point(95, 59); + this.txtHMakeDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHMakeDate.Name = "txtHMakeDate"; - this.txtHMakeDate.Size = new System.Drawing.Size(98, 15); + this.txtHMakeDate.Size = new System.Drawing.Size(131, 19); this.txtHMakeDate.TabIndex = 3; // // label11 @@ -855,9 +889,10 @@ this.label11.AutoSize = true; this.label11.BackColor = System.Drawing.Color.Transparent; this.label11.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label11.Location = new System.Drawing.Point(12, 50); + this.label11.Location = new System.Drawing.Point(16, 62); + this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(53, 12); + this.label11.Size = new System.Drawing.Size(67, 15); this.label11.TabIndex = 2; this.label11.Text = "鍒跺崟鏃ユ湡"; // @@ -865,9 +900,10 @@ // this.txtHMaker.BackColor = System.Drawing.Color.Transparent; this.txtHMaker.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.txtHMaker.Location = new System.Drawing.Point(71, 13); + this.txtHMaker.Location = new System.Drawing.Point(95, 16); + this.txtHMaker.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHMaker.Name = "txtHMaker"; - this.txtHMaker.Size = new System.Drawing.Size(98, 15); + this.txtHMaker.Size = new System.Drawing.Size(131, 19); this.txtHMaker.TabIndex = 1; // // label8 @@ -875,9 +911,10 @@ this.label8.AutoSize = true; this.label8.BackColor = System.Drawing.Color.Transparent; this.label8.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.label8.Location = new System.Drawing.Point(12, 16); + this.label8.Location = new System.Drawing.Point(16, 20); + this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(41, 12); + this.label8.Size = new System.Drawing.Size(52, 15); this.label8.TabIndex = 0; this.label8.Text = "鍒跺崟浜�"; // @@ -889,17 +926,19 @@ // panel1 // this.panel1.Dock = System.Windows.Forms.DockStyle.Left; - this.panel1.Location = new System.Drawing.Point(0, 50); + this.panel1.Location = new System.Drawing.Point(0, 62); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(41, 549); + this.panel1.Size = new System.Drawing.Size(55, 687); this.panel1.TabIndex = 33; // // panel3 // this.panel3.Dock = System.Windows.Forms.DockStyle.Right; - this.panel3.Location = new System.Drawing.Point(978, 50); + this.panel3.Location = new System.Drawing.Point(1304, 62); + this.panel3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(39, 549); + this.panel3.Size = new System.Drawing.Size(52, 687); this.panel3.TabIndex = 34; // // grdMain @@ -911,12 +950,13 @@ this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; this.grdMain.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.grdMain.Location = new System.Drawing.Point(3, 3); + this.grdMain.Location = new System.Drawing.Point(4, 4); + this.grdMain.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.grdMain.Name = "grdMain"; this.grdMain.ReadOnly = true; this.grdMain.RowHeadersWidth = 30; this.grdMain.RowTemplate.Height = 23; - this.grdMain.Size = new System.Drawing.Size(923, 268); + this.grdMain.Size = new System.Drawing.Size(1233, 339); this.grdMain.TabIndex = 44; this.grdMain.RowHeadersWidthChanged += new System.EventHandler(this.grdMain_RowHeadersWidthChanged); this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit); @@ -933,23 +973,25 @@ this.grdSum.BackgroundColor = System.Drawing.Color.Khaki; this.grdSum.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdSum.Dock = System.Windows.Forms.DockStyle.Bottom; - this.grdSum.Location = new System.Drawing.Point(41, 487); + this.grdSum.Location = new System.Drawing.Point(55, 609); + this.grdSum.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.grdSum.Name = "grdSum"; this.grdSum.ReadOnly = true; this.grdSum.RowHeadersWidth = 51; this.grdSum.RowTemplate.Height = 23; this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.grdSum.Size = new System.Drawing.Size(937, 19); + this.grdSum.Size = new System.Drawing.Size(1249, 24); this.grdSum.TabIndex = 45; // // grdPrint // this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.grdPrint.Location = new System.Drawing.Point(809, 543); + this.grdPrint.Location = new System.Drawing.Point(1079, 679); + this.grdPrint.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.grdPrint.Name = "grdPrint"; this.grdPrint.RowHeadersWidth = 51; this.grdPrint.RowTemplate.Height = 23; - this.grdPrint.Size = new System.Drawing.Size(25, 24); + this.grdPrint.Size = new System.Drawing.Size(33, 30); this.grdPrint.TabIndex = 46; this.grdPrint.Visible = false; // @@ -959,19 +1001,21 @@ this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.Location = new System.Drawing.Point(41, 187); + this.tabControl1.Location = new System.Drawing.Point(55, 233); + this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(937, 300); + this.tabControl1.Size = new System.Drawing.Size(1249, 376); this.tabControl1.TabIndex = 47; // // tabPage1 // this.tabPage1.Controls.Add(this.grdMain); - this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Location = new System.Drawing.Point(4, 25); + this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(929, 274); + this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tabPage1.Size = new System.Drawing.Size(1241, 347); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "鐗╂枡淇℃伅"; this.tabPage1.UseVisualStyleBackColor = true; @@ -979,10 +1023,11 @@ // tabPage2 // this.tabPage2.Controls.Add(this.grdSub); - this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Location = new System.Drawing.Point(4, 25); + this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(929, 274); + this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tabPage2.Size = new System.Drawing.Size(1241, 347); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "鏉$爜淇℃伅"; this.tabPage2.UseVisualStyleBackColor = true; @@ -996,12 +1041,13 @@ this.grdSub.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdSub.Dock = System.Windows.Forms.DockStyle.Fill; this.grdSub.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.grdSub.Location = new System.Drawing.Point(3, 3); + this.grdSub.Location = new System.Drawing.Point(4, 4); + this.grdSub.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.grdSub.Name = "grdSub"; this.grdSub.ReadOnly = true; this.grdSub.RowHeadersWidth = 30; this.grdSub.RowTemplate.Height = 23; - this.grdSub.Size = new System.Drawing.Size(923, 268); + this.grdSub.Size = new System.Drawing.Size(1233, 339); this.grdSub.TabIndex = 45; this.grdSub.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdSub_CellBeginEdit); this.grdSub.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdSub_CellContentClick); @@ -1010,9 +1056,10 @@ // tabPage3 // this.tabPage3.Controls.Add(this.grdList); - this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Location = new System.Drawing.Point(4, 25); + this.tabPage3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabPage3.Name = "tabPage3"; - this.tabPage3.Size = new System.Drawing.Size(929, 274); + this.tabPage3.Size = new System.Drawing.Size(1241, 347); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "妗f鍒楄〃"; this.tabPage3.UseVisualStyleBackColor = true; @@ -1027,19 +1074,20 @@ this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; this.grdList.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.grdList.Location = new System.Drawing.Point(0, 0); + this.grdList.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.grdList.Name = "grdList"; this.grdList.ReadOnly = true; this.grdList.RowHeadersWidth = 30; this.grdList.RowTemplate.Height = 23; - this.grdList.Size = new System.Drawing.Size(929, 274); + this.grdList.Size = new System.Drawing.Size(1241, 347); this.grdList.TabIndex = 46; // // Gy_BarCodeBill // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Lavender; - this.ClientSize = new System.Drawing.Size(1017, 599); + this.ClientSize = new System.Drawing.Size(1356, 749); this.Controls.Add(this.tabControl1); this.Controls.Add(this.grdSum); this.Controls.Add(this.panel2); @@ -1050,6 +1098,7 @@ this.Controls.Add(this.grdPrint); this.ForeColor = System.Drawing.Color.Black; this.KeyPreview = true; + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "Gy_BarCodeBill"; this.Text = "鍗曟嵁缂栬緫"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.resx" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.resx" index 59b08f6..08ddcde 100644 --- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.resx" +++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.resx" @@ -360,7 +360,7 @@ <data name="dy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADmSURBVDhPlY6xDYMwFES9U3bKCmzACEh0FJmACRiAnoqK + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADmSURBVDhPlY6xDYMwFES9U3bKCmzACEh0FJmACRiAnoqK jo6OzvH7yVk/OFHg0MnC/vfuhzOq6zrK76vzIrRtm3nf92sgBpdlieu6ZgCe5xmAXEot0zTZMABBXLiU grRUVRWHYTATYpOfYR9kiGbMnQelUTu5wzmsoDWk796GOI6jGRDDzH0BxAyQ1Z5e4xhuGUSQWbkAaE2B FMRN05h9uAD4JoHato1d9yjCOjOAH9Y+QggDOW5gwZdfEgR7iAf4YG53yq0eBADzjlWk/+QP2WXf9xmk @@ -370,7 +370,7 @@ <data name="sdy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAF/SURBVDhPnZFNSwJBAIbnX1Q/IOoYeAzqHh3C6JAgJEgU + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAF/SURBVDhPnZFNSwJBAIbnX1Q/IOoYeAzqHh3C6JAgJEgU UQgaeQgxKZQwtBRC7YsiOnQPISISKyEPUrcgKqIipNQ11/XzbWfQdf1IxQceZnaYeVhmiNV9AIvDB/OG V3JF/F5z7cK9fwrSCtP6NhrhdNyxsWXEuOpkGwvFoiTFbg+xkdI0YjDb2aZsLi9J8fouMDqhhlKlhcm2 9X9At2xlB1JCFnzJdCaHAl3jBeSyWWZpez3zSxYW4FIZJPmKQqZ0cDpcbS0zehML/HA8Ysk0k09npMNK @@ -383,7 +383,7 @@ <data name="yl.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAF/SURBVDhPnZFNSwJBAIbnX1Q/IOoYeAzqHh3C6JAgJEgU + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAF/SURBVDhPnZFNSwJBAIbnX1Q/IOoYeAzqHh3C6JAgJEgU UQgaeQgxKZQwtBRC7YsiOnQPISISKyEPUrcgKqIipNQ11/XzbWfQdf1IxQceZnaYeVhmiNV9AIvDB/OG V3JF/F5z7cK9fwrSCtP6NhrhdNyxsWXEuOpkGwvFoiTFbg+xkdI0YjDb2aZsLi9J8fouMDqhhlKlhcm2 9X9At2xlB1JCFnzJdCaHAl3jBeSyWWZpez3zSxYW4FIZJPmKQqZ0cDpcbS0zehML/HA8Ysk0k09npMNK @@ -396,7 +396,7 @@ <data name="AddRow.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEdSURBVDhPY/hPIWCws7P7TypGBmADPHb8B2OnLT//W6/5 + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEdSURBVDhPY/hPIWCws7P7TypGBmADPHb8B2OnLT//W6/5 9N9w6cv/mnMf/FeYeuO/eN/5/3xtx/4z1+wBY9oYUJCfTzTGasCqlSv/v3n9mihM0IDLly7937N79/+t W7aAxZcuWQLHCgoKcAwDWA04evHY/1U7VmNgkMaSuw3/ra2todqRDIDZvHD9ov996yf+r1pa/z9rct7/ mOZEuK0S7Wr/rc75gGmYGIoBIJu3nt/xf+n5Vf9nnZv/f8r52f9b93XDbQbhkGspYHrS09mYBsBcMHXD @@ -407,7 +407,7 @@ <data name="spRow.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEdSURBVDhPY/hPIWCws7P7TypGBmADPHb8B2OnLT//W6/5 + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEdSURBVDhPY/hPIWCws7P7TypGBmADPHb8B2OnLT//W6/5 9N9w6cv/mnMf/FeYeuO/eN/5/3xtx/4z1+wBY9oYUJCfTzTGasCqlSv/v3n9mihM0IDLly7937N79/+t W7aAxZcuWQLHCgoKcAwDWA04evHY/1U7VmNgkMaSuw3/ra2todqRDIDZvHD9ov996yf+r1pa/z9rct7/ mOZEuK0S7Wr/rc75gGmYGIoBIJu3nt/xf+n5Vf9nnZv/f8r52f9b93XDbQbhkGspYHrS09mYBsBcMHXD @@ -418,7 +418,7 @@ <data name="bc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAH1SURBVDhPjZPNSxRxGMcfI+jQLTxYIKLoQQsjvEadEoRO + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAH1SURBVDhPjZPNSxRxGMcfI+jQLTxYIKLoQQsjvEadEoRO /gO+awReIiGty97sRQtbPSmoB8FFMSwKDx3VXdvcfGErt9YlpWUJF/dFV2d0v36fHc0XdPALX2bmme/z mec38xuRBi+kahqRVmD5yfmsWe3J9ErtDD6tAQkAv85pzWqP9oo0foVcbWcJMEwDpmnaWjMqyWlHplfq ZlD2IVPD5CTgnra3ZlTN3oMJaj24NWYVk6kUNrbsrRlV+QQBNZ7jgKkpPsVtb82oCl06wQnAv1gCa/Gk @@ -433,7 +433,7 @@ <data name="DelRow.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADSSURBVDhPlZPRDYQgEERpxgaswlCGv/ZBSXwbC6AAC7AA + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADSSURBVDhPlZPRDYQgEERpxgaswlCGv/ZBSXwbC6AAC7AA G9hj1huCuMS7SUYi8l4IqhvHUf5tHRWc59ntcRy3dgXrusq2baUppUf3fe8L3mD0J0EPZLsCC0Sdcw8B 5hgV4HBaEIt14bIUCYUyTUViCmpYhqFICLM61wq41YcEbeDbDmqwbpEYMKICC0QhRhUwYMQUEGxhS6KC EIJ472We51dYm8+DEr1Cgm8BkhijCeNe575vhZJLk8OdQMCvkhKM+FfwjBIdc4oAgaQtFlpzV0Q+Xg/P @@ -443,7 +443,7 @@ <data name="wxm.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAH1SURBVDhPjZPNSxRxGMcfI+jQLTxYIKLoQQsjvEadEoRO + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAH1SURBVDhPjZPNSxRxGMcfI+jQLTxYIKLoQQsjvEadEoRO /gO+awReIiGty97sRQtbPSmoB8FFMSwKDx3VXdvcfGErt9YlpWUJF/dFV2d0v36fHc0XdPALX2bmme/z mec38xuRBi+kahqRVmD5yfmsWe3J9ErtDD6tAQkAv85pzWqP9oo0foVcbWcJMEwDpmnaWjMqyWlHplfq ZlD2IVPD5CTgnra3ZlTN3oMJaj24NWYVk6kUNrbsrRlV+QQBNZ7jgKkpPsVtb82oCl06wQnAv1gCa/Gk @@ -458,7 +458,7 @@ <data name="cz.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACfSURBVDhPYyAGsGWf/Q9lkglSz/xnSANiskHCqf9///8n + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAACfSURBVDhPYyAGsGWf/Q9lkglSz/xnSANiskHCqf9///8n wxCQBhAOPfp/ytn/JBgCUpQIsRWGQQYQZwhQ8ilQEQj3XwAqnokFG8/EbwDMNrhiUCCSohluM0wxzAC8 mkEAagBYMbI/QQYQ1AwCuAwgSjMI4DKAaIBkwD2C0YULAJ2LYQgMEwWgBiAbAsMkGQLGoLBAxyR5C2YQ OoYDBgYA9kn+I3B8Li4AAAAASUVORK5CYII= @@ -467,7 +467,7 @@ <data name="kc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEwSURBVDhPlZKxSgNBEIb3Qa66V7ha6xS+glgErvURzBNE + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEwSURBVDhPlZKxSgNBEIb3Qa66V7ha6xS+glgErvURzBNE 2wOLaKet2NlEsFtIiohgJR6xEdQ0Gojwu/9k59xdL1z84Ye73Z1vZmfWpLJVgeMD02l//K8IACy+l2N8 vl1h8XyO14cTzO0RnsaHEgxbEhBDer0B6CzLkOc5CPp6d4B6DXixgwYgSUIIA+/qWjZWy1vJTBD/+/1T 8dwDfNCvNTgEDIc3YkIW9Vl0hcfrfdxf7GE62tkMkLu70gnQClJPRrvbAdIesILZZUcF4RXastMTBVBt @@ -478,7 +478,7 @@ <data name="mrlk.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAH/SURBVDhPfZHfS1NhGMefkCLQu/A/6MK6SbMQFlg3dudN + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAH/SURBVDhPfZHfS1NhGMefkCLQu/A/6MK6SbMQFlg3dudN oBFDY9BF05XMMAoLL3bhxGB4zjzoVCKim4iCgkCMSam1cqP9aO4YJlpIDmqh00IRv73Pe87OWuV54Mt7 znm/n895z0aF8Stj6FdGoARDUAf/H97jTp96FyZmjC8QwuRUBB0zACkiwT0i9rxvgBcvX4MZEye65Vex vp6HJ7yJ+1nYpmNyE3nRZcbEiW74AljL5UB3gOk84J8HnFPA0UfirZqIaoZPMQDZZcbEibp6+vE9mwUF @@ -493,7 +493,7 @@ <data name="bclk.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAH4SURBVDhPjZPNS1RRGMZfI2jRLlqUEKLUQgsl3EauEoRW + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAH4SURBVDhPjZPNS1RRGMZfI2jRLlqUEKLUQgsl3EauEoRW /QN+phG4CQXTNrPLbzFrpZAuBIfEqChctFRndHI0YzKnxkHFYQgH50NH5+o8Pm/HwQ/s4oGHc++5z/O7 77nnvSKPPZDyKYSfA8tN55N6NfMvK1XT+LIBxAH8PqfUqxnNitR+g1x/yQuRlJWCZVm2Uo965RozmpXq aRR/Io1jYgJwTdlLPeqt92QqqHLj7phZTCST2Nqxl3rUWzrOTKX7JGBykm9x2Us96r3p1ApOAf5G49iI @@ -508,7 +508,7 @@ <data name="tb.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHvSURBVDhPnZJNSFRRGIYPCBHYLl24d9EiKsuN48KNBbUo + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAHvSURBVDhPnZJNSFRRGIYPCBHYLl24d9EiKsuN48KNBbUo EGSEmEwXoo0iRkR/ZBkSaC3m74qmC3/GjS7Edv5RTQNCMzUyNMWUWFaTo6AIaqjQ2/d999id61SLXnjh cr73ec8991yVqXZPLzq9PfD6e+AL2M1rnZ4n4IyO29Xa0YUf27twhwDlJfv3mdaawz8lw1mNWbrV7sHa 6jrcUxsYTOOPbprelAxnNWbp+r1HWF1ZhnoMDHwFKp8BeYO0s0+b38IDyXBWY5au3nmIdOqbhC6HgYIh @@ -523,7 +523,7 @@ <data name="gl.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG3SURBVDhPfVLdK0NhHH5LSXGn/QculCsfUbtRLl1JbhQh + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAG3SURBVDhPfVLdK0NhHH5LSXGn/QculCsfUbtRLl1JbhQh taxNNPnOolY+yhjjQo12oRQ3bhWiZGULF3Kv5Nucbeacs4/HeX/HnJ289tRT7+/5/Z7nfc+vw+bXgvD4 NuFZDojpC2DOvwX/1i6YCDPeDXEjDyu+C5oRhrgX1knMZrMQkfe83vNf45+QydlVEtKZDETkvaWlkMlk Chn3LFOhptIQMQsgsHmElvYetHXYcHB4YgpjIzOLJMhKCiIqagoZLUVKJPEWlWg2UlOKs3KmB7ncC3RI @@ -537,7 +537,7 @@ <data name="BatchNo.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD3SURBVDhPnZC9FYIwFEaZiQFkAB1ADzULZACGoJLKSio7 + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAD3SURBVDhPnZC9FYIwFEaZiQFkAB1ADzULZACGoJLKSio7 BqCzorNiABgABnjme+GFBPlR3znfSUJy7yMJdorG0S2KY1r6/lE0PBMcdA8z3NZEd9VtSmiolU7iSjwY CcNyUUL0UhzMIcK4An8IPFjGr2F0s3CTmrFOLbgN67vK79LQsOCqQhaIxIE9AfXVxT4Wwzp1NsGYQ4b9 tjhSe4smiVKma19NL+4KBEQA85hH1OQH+T6T6MgagaArThys0V3g8ZwpgbryzBuIXAfB3iosZSUP3VEH @@ -547,7 +547,7 @@ <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg diff --git a/WebAPI/Controllers/PublicPageMethodController.cs b/WebAPI/Controllers/PublicPageMethodController.cs index a399375..463036c 100644 --- a/WebAPI/Controllers/PublicPageMethodController.cs +++ b/WebAPI/Controllers/PublicPageMethodController.cs @@ -1919,6 +1919,33 @@ } #endregion + #region 鑾峰彇鍏ㄩ儴鐗╂枡淇℃伅 + [Route("PublicPageMethod/MaterialList")] + [HttpGet] + public object MaterialList(string sWhere) + { + try + { + ds = oCN.RunProcReturn("select * from h_v_KF_ICInventoryList_IF" + sWhere , "h_v_KF_ICInventoryList_IF"); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + #region 鏍规嵁鏍戝瀷id鏌ユ壘鐗╂枡鍒楄〃 [Route("Gy_MaintenanceMode/PartCX")] [HttpGet] diff --git a/WebAPI/Controllers/SCGL/Sc_ComplementGoodBillController.cs b/WebAPI/Controllers/SCGL/Sc_ComplementGoodBillController.cs index dad1384..2041329 100644 --- a/WebAPI/Controllers/SCGL/Sc_ComplementGoodBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_ComplementGoodBillController.cs @@ -99,6 +99,7 @@ public long HSouceInterID = 0;//HSourceInterIDCol public long HSourceEntryID = 0;//HSourceEntryIDCol public int? 鍙枡鏁伴噺 = 0;//HBHGQtyCol + public int? 閰嶅鏁伴噺 = 0; public int? 宸插彨鏂欐暟閲� = 0;//HBHGQtyCol public int? 宸查厤閫佹暟閲� = 0;//HBHGQtyCol public double? 閫�鏂欐暟閲� = 0;//閫�鏂欐暟閲� @@ -1007,5 +1008,254 @@ } #endregion + #region 鐢熶骇鍙枡骞冲彴 閰嶅鍙枡鏌ヨ + + [Route("Sc_ComplementGoodBill/JIT_ComplementGoodPT")] + [HttpGet] + public object JIT_ComplementGoodPT(string sWhere,string user) + { + try + { + ds = oCN.RunProcReturn("exec h_p_JIT_ComplementGoodPT " + sWhere, "h_p_JIT_ComplementGoodPT"); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鐢熶骇鍙枡骞冲彴 閰嶅鍙枡鏂板 + [Route("Sc_ComplementGoodBill/InsertCallGoodsBill_PTJL")] + [HttpPost] + public object InsertCallGoodsBill_PTJL([FromBody] JObject msg) + { + var _value = msg["msg"].ToString(); + string[] sArray = _value.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); + string user = sArray[1].ToString(); + omodel.HPRDORGID = long.Parse(sArray[2].ToString()); + + try + { + if (!DBUtility.ClsPub.Security_Log("Cj_CallGoodsBill_Edit", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犱繚瀛樻潈闄�"; + objJsonResult.data = null; + return objJsonResult; + } + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); + + List<CallGoodsBill> listCa = new List<CallGoodsBill>(); + //鑾峰彇琛ㄦ牸鏁版嵁闆嗗悎 + listCa = JsonConvert.DeserializeObject<List<CallGoodsBill>>(msg2.ToString()); + + var flag = false; + var txt = ""; + + for (int i = 0; i < listCa.Count; i++) + { + if (listCa[i].閰嶅鏁伴噺 <= 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i + 1}琛岄厤濂楁暟閲忓皬浜�0锛屾棤娉曞彨鏂�!"; + objJsonResult.data = null; + return objJsonResult; + } + + ds = oCN.RunProcReturn("select * from h_v_JIT_WarehouseList where 浠撳簱ID=" + listCa[i].璋冨嚭浠撳簱id + " and 鐗╂枡缂栫爜 = '" + listCa[i].鐗╂枡浠g爜 + "' and 搴撳瓨缁勭粐=" + listCa[i].HOutOrgID, "h_v_JIT_WarehouseList"); + + var HSCWHIDCount = double.Parse(ds.Tables[0].Rows[0]["璋冨嚭浠撳簱鍙敤搴撳瓨鏁伴噺"].ToString()); + + if (HSCWHIDCount == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i + 1}琛屽簱瀛樻暟閲忎负0,鏃犳硶鍙枡!"; + objJsonResult.data = null; + return objJsonResult; + } + + if (listCa[i].閰嶅鏁伴噺 > HSCWHIDCount) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i+1}琛屽簱瀛樻暟閲忓皬浜庡彨鏂欐暟閲�,鏃犳硶鍙枡!"; + objJsonResult.data = null; + return objJsonResult; + } + + if (listCa[i].璋冨叆浠撳簱id == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i + 1}琛岃閫夋嫨璋冨叆浠撳簱!"; + objJsonResult.data = null; + return objJsonResult; + } + + if (listCa[i].璋冨嚭浠撳簱id == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i + 1}琛岃閫夋嫨璋冨嚭浠撳簱!"; + objJsonResult.data = null; + return objJsonResult; + } + + if (listCa[i].璋冨嚭浠撳簱id == listCa[i].璋冨叆浠撳簱id) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊i + 1}琛岃皟鍑轰粨搴撳拰璋冨叆浠撳簱涓嶈兘涓�鏍�!"; + objJsonResult.data = null; + return objJsonResult; + } + + var Hqty = 0.0; + var TuiHqty = 0.0; + //褰撳墠鍗曟嵁宸插彨鏂� 鍜� 宸查��鏂欐暟閲� + ds = oCN.RunProcReturn($@" + select isnull(a.HQty,0) 宸插彨鏂欐暟閲�,isnull(b.HQty,0) 宸查��鏂欑敵璇锋暟閲� from ( + select sum(b.HQty) HQty,c.HNumber ,b.HSourceBillNo + from JIT_CallGoodsBillMain a + join JIT_CallGoodsBillSub b on a.HInterID=b.HInterID + left join Gy_Material c on b.HMaterID=c.HItemID + where b.HSourceBillNo='{listCa[i].HSourceBillNo}' + group by c.HNumber,b.HSourceBillNo + ) a + left join ( + select sum(b.HQty) HQty,c.HNumber,b.HSourceBillNo + from JIT_CallGoodsBackRequestBillMain a + inner join JIT_CallGoodsBackRequestBillSub b on a.HInterID=b.HInterID + left join Gy_Material c on b.HMaterID=c.HItemID + where b.HSourceBillNo='{listCa[i].HSourceBillNo}' + group by c.HNumber,b.HSourceBillNo + ) b on a.HNumber=b.HNumber and a.HSourceBillNo=b.HSourceBillNo where a.HNumber='{listCa[i].鐗╂枡浠g爜}'", "JIT_CallGoodsBillMain"); + + if (ds.Tables[0].Rows.Count > 0) + { + Hqty = double.Parse(ds.Tables[0].Rows[0]["宸插彨鏂欐暟閲�"].ToString()); + TuiHqty = double.Parse(ds.Tables[0].Rows[0]["宸查��鏂欑敵璇锋暟閲�"].ToString()); + } + + if (listCa[i].閰嶅鏁伴噺 > listCa[i].璁″垝鍙戞枡鏁伴噺) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍙枡鏁伴噺澶т簬璁″垝鍙戞枡鏁伴噺!"; + objJsonResult.data = null; + return objJsonResult; + } + + if ((listCa[i].閰嶅鏁伴噺 + Hqty - TuiHqty) > listCa[i].璁″垝鍙戞枡鏁伴噺) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍙枡鎬绘暟閲忓ぇ浜庤鍒掑彂鏂欐暟閲�!"; + objJsonResult.data = null; + return objJsonResult; + } + + + var txtHBillNo = DBUtility.ClsPub.CreateBillCode_Prod(CallGoodsBill.ModName, ref DBUtility.ClsPub.sExeReturnInfo, true);//鑾峰緱涓�涓柊鐨勫崟鎹彿 + omodel.HInterID = DBUtility.ClsPub.CreateBillID_Prod(CallGoodsBill.ModName, ref DBUtility.ClsPub.sExeReturnInfo); + omodel.HYear = DateTime.Now.Year; + omodel.HPeriod = DateTime.Now.Month; + //鍥哄畾璧嬪��================================= + omodel.HBillNo = txtHBillNo.Trim(); //鍦ㄨ祴鍊肩被鍓嶅氨澶勭悊濂藉瓧绗︿覆鍜屾暟瀛� + omodel.HDate = DateTime.Now; + omodel.HMaker = user; + omodel.HMakeDate = DateTime.Today.ToString(); + omodel.HUpDater = ""; + omodel.HUpDateDate = ""; + omodel.HCloseType = false; + //鏄庣粏绫昏祴鍊� + + //鍥哄畾璧嬪��======================================== + oSub.HEntryID = i + 1; + oSub.HSourceInterID = listCa[i].HSouceInterID; + oSub.HSourceEntryID = listCa[i].HSourceEntryID; + oSub.HSourceBillType = "88"; + oSub.HSourceBillNo = listCa[i].HSourceBillNo; + oSub.HQty = double.Parse(listCa[i].閰嶅鏁伴噺.ToString()); + + oSub.HMaterID = listCa[i].HMaterialID; + oSub.HMaterNumber = listCa[i].HMaterialNumberCol; + oSub.HModel = listCa[i].HMaterialModelCol; + oSub.HWHID = int.Parse(listCa[i].璋冨叆浠撳簱id.ToString()); + oSub.HSCWHID = int.Parse(listCa[i].璋冨嚭浠撳簱id.ToString()); + oSub.HProcName = listCa[i].HProcNameCol; + oSub.HProcID = listCa[i].HProcID; + oSub.HOutOrgID = listCa[i].HOutOrgID; + oSub.HICMOBillNo = listCa[i].HICMOBillNo; + oSub.HICMOInterID = listCa[i].HICMOInterID; + oSub.HICMOEntryID = listCa[i].HICMOEntryID; + oSub.HDeptID = listCa[i].HDeptID; + oSub.HPlanQty = listCa[i].璁″垝鍙戞枡鏁伴噺; + oSub.HSeOrderNo = listCa[i].閿�鍞鍗曞彿; + oSub.HBPlanDate = listCa[i].璁″垝寮�宸ユ棩鏈�; + + + flag = AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + + if (flag == false) + { + txt = txt + DBUtility.ClsPub.isStrNull(i + 1) + "銆�"; + } + + } + if (txt != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = $"绗瑊txt}琛屽彨鏂欏け璐ワ紝閲嶆柊鍙枡锛屽叾浠栬鏁板彨鏂欐垚鍔�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (flag == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + 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; + } + } + + + #endregion } } \ No newline at end of file diff --git a/WebAPI/Controllers/SCGL/Sc_ComplementGoodsController.cs b/WebAPI/Controllers/SCGL/Sc_ComplementGoodsController.cs index 950740a..b87a339 100644 --- a/WebAPI/Controllers/SCGL/Sc_ComplementGoodsController.cs +++ b/WebAPI/Controllers/SCGL/Sc_ComplementGoodsController.cs @@ -338,8 +338,8 @@ } } - ////鍚屾閲戣澏鐩存帴璋冩嫧鍗� - //objJsonResult = AddSendGoodsBillSynChronizAtion(HBillNo); + //鍚屾閲戣澏鐩存帴璋冩嫧鍗� + objJsonResult = AddSendGoodsBillSynChronizAtion(HBillNo); oCN.Commit(); diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" index b415d2e..a0cea38 100644 --- "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" +++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" @@ -259,6 +259,34 @@ } #endregion + #region [閫氳繃鏉$爜缂栧彿鑾峰彇HItemId] + [Route("Sc_BarCode/Get_HItemId")] + [HttpGet] + public object Get_HItemId(string sWhere) + { + List<object> columnNameList = new List<object>(); + try + { + ds = oCN.RunProcReturn("select * from h_v_IF_BarCodeBillList where 鏉$爜缂栧彿 = '" + sWhere + "'", "h_v_IF_BarCodeBillList"); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = e.Message.ToString(); + objJsonResult.data = null; + objJsonResult.list = columnNameList; + } + return objJsonResult; + } + #endregion + #region [閫氳繃閫夋嫨鐨勬簮鍗曚俊鎭煡鎵炬簮鍗曟暟鎹甝 [Route("Sc_BarCode/SelectReportFromBillList")] [HttpPost] @@ -480,6 +508,73 @@ #endregion + #region [鍚屾璧勬枡] + [Route("Sc_BarCode/Sync_data")] + [HttpGet] + public object Sync_data() + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + try + { + oCn.RunProc("exec h_p_IF_ERPDataToLocal", ref DBUtility.ClsPub.sExeReturnInfo); + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍚屾鍩虹璧勬枡鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍚屾鍩虹璧勬枡澶辫触锛�" + e; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鎵规] + [Route("Sc_BarCode/Batch")] + [HttpGet] + public object Batch(int HMaterID, string HBatchNo) + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + bool b = false; + if (HMaterID != 0) + { + DataSet oDs = oCn.RunProcReturn("exec h_p_Gy_BarCodeBill_GetBatchNo " + HMaterID.ToString() + ",'" + HBatchNo + "','" + "" + "','" + "" + "'", "h_p_Gy_BarCodeBill_GetBatchNo"); + // + if (oDs == null && oDs.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "1"; + objJsonResult.Message="鐢熸垚鎵规澶辫触锛�"; + return objJsonResult; + } + else if (DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0][0]) == "1") + { + objJsonResult.code = "1"; + objJsonResult.Message = "鐢熸垚鎵规鎴愬姛锛�"; + objJsonResult.data = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); + HBatchNo = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); + b = true; + return objJsonResult; + } + } + //鏄庣粏琛ㄦ槸鍚︿负闆惰 + if (b == false) + { + objJsonResult.code = "1"; + objJsonResult.Message="娌℃湁闇�瑕佺敓鎴愭壒娆$殑鏄庣粏琛岋紒"; + return objJsonResult; + } + else //瀹屽叏灏侀棴 + { + return null; + } + } + #endregion + #region [鏉$爜鐢熸垚鎺ュ彛] [Route("Sc_BarCode/Sub_SaveBill")] [HttpPost] @@ -536,7 +631,7 @@ } return objJsonResult; } - #endregion + #endregion #region[鍗曟嵁瀹屾暣鎬у垽鏂璢 private bool Sub_AllowSave(string msg2, string HSelectBarCodeType) -- Gitblit v1.9.1