| DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.resx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/Gs.DevApp.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs
@@ -1,5 +1,6 @@ using DevExpress.XtraEditors; using DevExpress.XtraPrinting.Native; using Gs.DevApp.DevFrm.WOM; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -316,23 +317,39 @@ /// <param name="e"></param> private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e) { //guidKey, rptParameter string rowGuid, rowName; (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_fBillNo, gridView1, "fBillNo"); (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_fBillNo, gridView1); if (string.IsNullOrEmpty(rowGuid)) { MsgHelper.ShowError("请å éæ©ä½ è¦æä½çè¡ï¼"); this.toolBarMenu1.rptParameter = "return false"; MsgHelper.Warning("请å éæ©ä½ è¦æå°çåæ®ï¼"); return; } this.toolBarMenu1.rptParameter = "rpt_sdzjdb{" + "100" + "," + "" + "," + "" + "," + "" + "," + "" + "}"; this.toolBarMenu1.guidKey = rowGuid; Frm_MesDbck_Print_Select frm = new Frm_MesDbck_Print_Select(rowGuid); DialogResult result = frm.ShowDialog(); if (result == DialogResult.Cancel || result == DialogResult.None) { // ç¨æ·ç¹å»äºåæ¶æé®æç´æ¥å ³éçªå£ this.toolBarMenu1.rptParameter = "return false"; } ////guidKey, rptParameter //string rowGuid, rowName; //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, // lbGuid, txt_fBillNo, gridView1, "fBillNo"); //if (string.IsNullOrEmpty(rowGuid)) //{ // MsgHelper.ShowError("请å éæ©ä½ è¦æä½çè¡ï¼"); // return; //} //this.toolBarMenu1.rptParameter = "rpt_sdzjdb{" // + "100" // + "," + "" // + "," + "" // + "," + "" // + "," + "" // + "}"; //this.toolBarMenu1.guidKey = rowGuid; } DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,139 @@ namespace Gs.DevApp.DevFrm.WOM { partial class Frm_MesDbck_Print_Select { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_MesDbck_Print_Select)); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); this.radioGroup1 = new DevExpress.XtraEditors.RadioGroup(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.radioGroup1.Properties)).BeginInit(); this.SuspendLayout(); // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(33, 25); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(12, 14); this.labelControl1.TabIndex = 0; this.labelControl1.Text = " "; // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(33, 22); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(84, 14); this.labelControl2.TabIndex = 2; this.labelControl2.Text = "è¯·éæ©æå°æ¨¡ç"; // // btnCancel // this.btnCancel.Appearance.Options.UseFont = true; this.btnCancel.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; this.btnCancel.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.ImageOptions.Image"))); this.btnCancel.Location = new System.Drawing.Point(219, 161); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(76, 29); this.btnCancel.TabIndex = 240; this.btnCancel.Text = "åæ¶ (&C)"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnSave // this.btnSave.Appearance.Options.UseFont = true; this.btnSave.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); this.btnSave.Location = new System.Drawing.Point(127, 161); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(76, 29); this.btnSave.TabIndex = 239; this.btnSave.Text = "ç´æ¥æå°"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // radioGroup1 // this.radioGroup1.EditValue = "0"; this.radioGroup1.Location = new System.Drawing.Point(33, 56); this.radioGroup1.Name = "radioGroup1"; this.radioGroup1.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.RadioGroupItem[] { new DevExpress.XtraEditors.Controls.RadioGroupItem("0", "ç´æ¥è°æ¨å"), new DevExpress.XtraEditors.Controls.RadioGroupItem("1", "è°æ¨ç¨ææ¸ å")}); this.radioGroup1.Size = new System.Drawing.Size(255, 64); this.radioGroup1.TabIndex = 3; // // simpleButton1 // this.simpleButton1.Appearance.Options.UseFont = true; this.simpleButton1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.simpleButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.simpleButton1.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton1.ImageOptions.Image"))); this.simpleButton1.Location = new System.Drawing.Point(33, 161); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(76, 29); this.simpleButton1.TabIndex = 241; this.simpleButton1.Text = "é¢è§æå°"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // Frm_MesDbck_Print_Select // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(317, 212); this.Controls.Add(this.simpleButton1); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); this.Controls.Add(this.radioGroup1); this.Controls.Add(this.labelControl2); this.Controls.Add(this.labelControl1); this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Frm_MesDbck_Print_Select"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "请éè¦æå°åæ°"; ((System.ComponentModel.ISupportInitialize)(this.radioGroup1.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private DevExpress.XtraEditors.LabelControl labelControl1; private DevExpress.XtraEditors.LabelControl labelControl2; private DevExpress.XtraEditors.RadioGroup radioGroup1; private DevExpress.XtraEditors.SimpleButton btnCancel; private DevExpress.XtraEditors.SimpleButton btnSave; private DevExpress.XtraEditors.SimpleButton simpleButton1; } } DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,476 @@ using DevExpress.Utils.DirectXPaint; using DevExpress.Utils.VisualEffects; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; using DevExpress.XtraEditors.Repository; using DevExpress.XtraGrid.Views.Base.ViewInfo; using FastReport; using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlTypes; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace Gs.DevApp.DevFrm.WOM { public partial class Frm_MesDbck_Print_Select : DevExpress.XtraEditors.XtraForm { public string rowGuid = ""; private List<string> _selectedBlyIds = new List<string>(); // åå¨éä¸ç夿åID public Frm_MesDbck_Print_Select(string _rowGuid) { rowGuid = _rowGuid; InitializeComponent(); //getBly(); //// ç»å®éæ©äºä»¶ //this.checkedListBoxControl1.ItemCheck += CheckedListBoxControl1_ItemCheck; } ///// <summary> ///// é项å¾é/åæ¶äºä»¶ ///// </summary> //private void CheckedListBoxControl1_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e) //{ // if (e.Index >= 0 && e.Index < checkedListBoxControl1.Items.Count) // { // var item = checkedListBoxControl1.Items[e.Index] as CheckedListBoxItem; // if (item != null) // { // string blyId = item.Value?.ToString(); // if (e.State == CheckState.Checked) // { // // æ·»å éä¸çID // if (!string.IsNullOrEmpty(blyId) && !_selectedBlyIds.Contains(blyId)) // { // _selectedBlyIds.Add(blyId); // } // } // else if (e.State == CheckState.Unchecked) // { // // ç§»é¤åæ¶çID // if (!string.IsNullOrEmpty(blyId)) // { // _selectedBlyIds.Remove(blyId); // } // } // } // } //} ///// <summary> ///// 读å夿å ///// </summary> //private void getBly() //{ // this.checkedListBoxControl1.Items.Clear(); // _selectedBlyIds.Clear(); // æ¸ ç©ºéä¸çIDå表 // //string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid; // //var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1"); // //var json = JsonConvert.SerializeObject(pgq); // var _obj = new // { // currentPage = 1, // everyPageSize = 999999, // guid = this.rowGuid,//主建 // sortName = "", // keyWhere = "" // }; // try // { // var strReturn = UtilityHelper.HttpPost("", "WomdaaManager/Getbly", JsonConvert.SerializeObject(_obj)); // var _rtn = UtilityHelper.ReturnToTablePage(strReturn); // DataTable tb = _rtn.rtnData.list; // // æ¹æ³1ï¼ä½¿ç¨æé 彿°ç´æ¥è®¾ç½®DescriptionåValue // foreach (DataRow row in tb.Rows) // { // string blyId = row["blyId"]?.ToString(); // å设IDåæ®µå为blyId // string blyName = row["blyName"]?.ToString(); // if (!string.IsNullOrEmpty(blyId) && !string.IsNullOrEmpty(blyName)) // { // // å建CheckedListBoxItemï¼å°åç§°åå¨å¨Descriptionï¼IDåå¨å¨Value // var item = new CheckedListBoxItem(blyName, blyId) // { // Description = blyName, // æ¾ç¤ºåç§° // Value = blyId // åå¨ID // }; // this.checkedListBoxControl1.Items.Add(item); // } // } // // æ¹æ³2ï¼æè 使ç¨AddRangeçæ¹å¼ï¼å¦ææ°æ®éè¾å¤§ï¼ // /* // var items = new List<CheckedListBoxItem>(); // foreach (DataRow row in tb.Rows) // { // string blyId = row["blyId"]?.ToString(); // string blyName = row["blyName"]?.ToString(); // if (!string.IsNullOrEmpty(blyId) && !string.IsNullOrEmpty(blyName)) // { // var item = new CheckedListBoxItem(blyName, blyId); // items.Add(item); // } // } // this.checkedListBoxControl1.Items.AddRange(items.ToArray()); // */ // // å¯éï¼è®¾ç½®æ¾ç¤ºæ ¼å¼ï¼ä½¿æ¾ç¤ºæ´æ¸ æ° // this.checkedListBoxControl1.DisplayMember = "Description"; // æ¾ç¤ºDescription屿§ // this.checkedListBoxControl1.ValueMember = "Value"; // å¼ä½¿ç¨Value屿§ // // å¯éï¼æå°è°è¯ä¿¡æ¯ // DebugPrintLoadedItems(); // } // catch (Exception ex) // { // MsgHelper.Warning("æç¤ºï¼" + ex.Message); // } //} ///// <summary> ///// è°è¯ï¼æå°å·²å è½½ç项ç®ä¿¡æ¯ ///// </summary> //private void DebugPrintLoadedItems() //{ // StringBuilder sb = new StringBuilder(); // sb.AppendLine("å·²å è½½ç夿åå表ï¼"); // foreach (var itemObj in this.checkedListBoxControl1.Items) // { // if (itemObj is CheckedListBoxItem item) // { // sb.AppendLine($"åç§°ï¼{item.Description}, IDï¼{item.Value}, éä¸ç¶æï¼{item.CheckState}"); // } // } // // å¯ä»¥åå ¥æ¥å¿ææ¾ç¤ºå¨è°è¯çªå£ // // Console.WriteLine(sb.ToString()); //} ///// <summary> ///// è·åææéä¸ç夿åID ///// </summary> //private List<string> GetSelectedBlyIds() //{ // var selectedIds = new List<string>(); // // æ¹æ³1ï¼ä½¿ç¨åå¨ç_selectedBlyIdså表 // // return _selectedBlyIds.ToList(); // // æ¹æ³2ï¼ç´æ¥ä»æ§ä»¶è·å // foreach (var itemObj in this.checkedListBoxControl1.CheckedItems) // { // if (itemObj is CheckedListBoxItem item && item.Value != null) // { // selectedIds.Add(item.Value.ToString()); // } // } // return selectedIds; //} ///// <summary> ///// è·åææéä¸ç夿ååç§° ///// </summary> //private List<string> GetSelectedBlyNames() //{ // var selectedNames = new List<string>(); // foreach (var itemObj in this.checkedListBoxControl1.CheckedItems) // { // if (itemObj is CheckedListBoxItem item && item.Description != null) // { // selectedNames.Add(item.Description.ToString()); // } // } // return selectedNames; //} /// <summary> /// å ³é /// </summary> private void btnCancel_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; // å 设置DialogResult this.Close(); } /// <summary> /// ç´æ¥æå° /// </summary> private void btnSave_Click(object sender, EventArgs e) { int dylx = radioGroup1.SelectedIndex; // æå°ç±»å if (dylx == 0) // éä¸ªå¤æåæå° { printDj("", 1, "0"); //// è·åéä¸ç夿åIDå表 //var selectedBlyIds = GetSelectedBlyIds(); //// æç¤º1ï¼æ£æ¥æ¯å¦éæ©äºå¤æå //if (selectedBlyIds.Count == 0) //{ // MsgHelper.ShowInformation("请è³å°éæ©ä¸ä¸ªå¤æåï¼"); // return; //} //// è·åéä¸ç夿ååç§°ï¼ç¨äºæ¾ç¤ºï¼ //var selectedBlyNames = GetSelectedBlyNames(); //// æç¤º2ï¼ç¡®è®¤å¯¹è¯æ¡ //if (!MsgHelper.AskQuestion($"æ¨éæ©äº {selectedBlyNames.Count} ä¸ªå¤æåï¼\n{string.Join(", ", selectedBlyNames)}\n\nç¡®å®è¦æå°åï¼")) // return; //// é个æå° //for (int i = 0; i < selectedBlyIds.Count; i++) //{ // string blyId = selectedBlyIds[i]; // string blyName = selectedBlyNames[i]; // // æå°ï¼ä¼ é夿åID // printDj(blyId, 1,blyName); // Thread.Sleep(50); // 鲿¢æå°è¿å¿« //} } else if(dylx == -1) { MsgHelper.ShowInformation("请è³å°éæ©ä¸ç§æå°æ¹å¼ï¼"); return; } else // æ¹éæå°ï¼ä¸æå®å ·ä½å¤æåï¼ { // æ¹éæå°ï¼ä¼ é空ID printDj("",1, "1"); } } /// <summary> /// é¢è§æå° /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButton1_Click(object sender, EventArgs e) { int dylx = radioGroup1.SelectedIndex; // æå°ç±»å if (dylx == 0) // éä¸ªå¤æåæå° { printDj("", 0, "0"); //// è·åéä¸ç夿åIDå表 //var selectedBlyIds = GetSelectedBlyIds(); //// æç¤º1ï¼æ£æ¥æ¯å¦éæ©äºå¤æå //if (selectedBlyIds.Count == 0) //{ // MsgHelper.ShowInformation("请è³å°éæ©ä¸ä¸ªå¤æåï¼"); // return; //} //// è·åéä¸ç夿ååç§°ï¼ç¨äºæ¾ç¤ºï¼ //var selectedBlyNames = GetSelectedBlyNames(); //// æç¤º2ï¼ç¡®è®¤å¯¹è¯æ¡ //if (!MsgHelper.AskQuestion($"æ¨éæ©äº {selectedBlyNames.Count} ä¸ªå¤æåï¼\n{string.Join(", ", selectedBlyNames)}\n\nç¡®å®è¦æå°åï¼")) // return; //// é个æå° //for (int i = 0; i < selectedBlyIds.Count; i++) //{ // string blyId = selectedBlyIds[i]; // string blyName = selectedBlyNames[i]; // // æå°ï¼ä¼ é夿åID // printDj(blyId, 0, "0"); // Thread.Sleep(50); // 鲿¢æå°è¿å¿« //} } else if (dylx == -1) { MsgHelper.ShowInformation("请è³å°éæ©ä¸ç§æå°æ¹å¼ï¼"); return; } else // æ¹éæå°ï¼ä¸æå®å ·ä½å¤æåï¼ { // æ¹éæå°ï¼ä¼ é空ID printDj("", 0,"1"); } } /// <summary> /// è°ç¨æå°æ¥å£ /// </summary> /// <param name="blyId">夿åID</param> /// <param name="blyName">夿ååç§°ï¼ç¨äºæ¥å¿ï¼></param> /// <param name="printType">1ç´æ¥æå°ï¼0é¢è§æå°</param> private void printDj(string blyId, int printType, string blyName = "") { try { // æå»ºæå°åæ°ï¼ä¼ é夿åID string rptParameter = ""; if(blyName=="0") { rptParameter = "rpt_sdzjdb{" + "100" + "," + "" + "," + "" + "," + "" + "," + "" + "}"; } else { rptParameter = "rpt_dbylqd{" + "100" + "," + "" + "," + "" + "," + "" + "," + "" + "}"; } var _obj = new { rptParameter = rptParameter, guid = this.rowGuid, isDesign = 0 }; var strJson = UtilityHelper.HttpPost("", "Report/GetRptData", JsonConvert.SerializeObject(_obj)); var _job = JObject.Parse(strJson); var rtnCode = _job["rtnCode"].ToString(); if (int.Parse(rtnCode) > 0) { // æ¨¡æ¿ var report = new FastReport.Report(); EnvironmentSettings eSet = new EnvironmentSettings(); eSet.ReportSettings.ShowProgress = false; report = new FastReport.Report(); var buffer = (byte[])_job["rtnData"]["reportTemplateData"]; using (var Stream = new MemoryStream(buffer)) { report.Load(Stream); } // 主表 var array = new JArray(); foreach (var a in _job["rtnData"]["zb"]) array.Add(a); var _zb = JsonConvert.DeserializeObject<DataTable>(array.ToString()); _zb.TableName = "zb"; // æç»è¡¨1 var array1 = new JArray(); foreach (var a in _job["rtnData"]["mx1"]) array1.Add(a); var _mx1 = JsonConvert.DeserializeObject<DataTable>(array1.ToString()); _mx1.TableName = "mx1"; // æç»è¡¨2 var array2 = new JArray(); foreach (var a in _job["rtnData"]["mx2"]) array2.Add(a); var _mx2 = JsonConvert.DeserializeObject<DataTable>(array2.ToString()); _mx2.TableName = "mx2"; // å å°æ°æ®éä¸ var ds = new DataSet(); ds.Tables.Add(_zb); ds.Tables.Add(_mx1); ds.Tables.Add(_mx2); // å¯éï¼æ·»å 夿åä¿¡æ¯å°æ¥è¡¨æ°æ®æº if (!string.IsNullOrEmpty(blyName)) { // å¯ä»¥å¨æ¥è¡¨æ°æ®æºä¸æ·»å 夿åä¿¡æ¯ DataTable blyTable = new DataTable("BlyInfo"); blyTable.Columns.Add("BlyId", typeof(string)); blyTable.Columns.Add("BlyName", typeof(string)); blyTable.Rows.Add(blyId, blyName); ds.Tables.Add(blyTable); } report.RegisterData(ds); report.PrintSettings.ShowDialog = false; if (printType == 1) report.Print(); else { try { using (Form frm = new RptPreview(this.rowGuid, rptParameter)) { frm.ShowDialog(); } } catch (Exception) { } } report.Dispose(); // è®°å½æå°æ¥å¿ LogPrintOperation(blyId, blyName, true, "æå°æå"); } else { string errorMsg = _job["rtnMsg"]?.ToString() ?? "æå°å¤±è´¥"; LogPrintOperation(blyId, blyName, false, errorMsg); MsgHelper.ShowError($"æå°å¤±è´¥ï¼{errorMsg}"); } } catch (Exception ex) { LogPrintOperation(blyId, blyName, false, ex.Message); MsgHelper.ShowError($"æå°å¼å¸¸ï¼{ex.Message}"); } } /// <summary> /// è®°å½æå°æä½æ¥å¿ /// </summary> private void LogPrintOperation(string blyId, string blyName, bool isSuccess, string message) { // è¿éå¯ä»¥è®°å½æå°æ¥å¿å°æ°æ®åºææä»¶ string logMessage = $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} - " + $"åæ®GUID: {rowGuid}, " + $"夿åID: {blyId}, " + $"夿ååç§°: {blyName}, " + $"ç»æ: {(isSuccess ? "æå" : "失败")}, " + $"æ¶æ¯: {message}"; // åå ¥æ¥å¿æä»¶ææ°æ®åº // File.AppendAllText("PrintLog.txt", logMessage + Environment.NewLine); // æè è¾åºå°è°è¯çªå£ Console.WriteLine(logMessage); } } } DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck_Print_Select.resx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,150 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="btnCancel.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABF0RVh0VGl0 bGUAQ2xvc2U7RXhpdDsFGf+FAAAArElEQVQ4T7XSOwoCQRCE4c0E8XEDQTMRA+/gTTykGBuYGm6olxBE tP1LHGl1WoZVg2+DYrqYZrYys6/cPvVibk38teBUkkUFNcbYuGyFCXYuyxYcMYSyPlSi4fY9m+KMsECW aEF5D2m4gzUeZ6MC8SXZYflU4K8taZ2nc1GBH+4i3eStJFdwwABpWNf268xwQVggW4zgd1aJnnbvsrBA 9JyvWfGPVOx3Bc1ZdQWpA3U147gCvgAAAABJRU5ErkJggg== </value> </data> <data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACB0RVh0VGl0 bGUATmV3O05ld0VtcGxveWVlO05ld1BlcnNvbjveWVScAAAA3ElEQVQ4T5WOPQ5BQRSF3wYsgohCJXRq PRWJJaktgFLUOjsQ0egURKEgaj/NOEfuyJl5E4/iy8y5c7+Tyc6LruI0O+cKUbEVnUkhxhd4ycOcDUdL cgVjULKcK1AxyCbwJBPLuYKiH/iCm+VkgZf0VJlcKJNUgRZ9sshkRpkEBRr8AmiCJ/Ay75z9XED64GQM bPZGnSDYAsUjqFgmZXAAPWZ1goDHBngAfnsDqqAGtjbjW12duGBui9+YqhMXnKPlFCd14oJ9tJxip05c 0AFrcLdlhbMVaKsTFPyPy16LX4vunIH/egAAAABJRU5ErkJggg== </value> </data> <data name="simpleButton1.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACB0RVh0VGl0 bGUATmV3O05ld0VtcGxveWVlO05ld1BlcnNvbjveWVScAAAA3ElEQVQ4T5WOPQ5BQRSF3wYsgohCJXRq PRWJJaktgFLUOjsQ0egURKEgaj/NOEfuyJl5E4/iy8y5c7+Tyc6LruI0O+cKUbEVnUkhxhd4ycOcDUdL cgVjULKcK1AxyCbwJBPLuYKiH/iCm+VkgZf0VJlcKJNUgRZ9sshkRpkEBRr8AmiCJ/Ay75z9XED64GQM bPZGnSDYAsUjqFgmZXAAPWZ1goDHBngAfnsDqqAGtjbjW12duGBui9+YqhMXnKPlFCd14oJ9tJxip05c 0AFrcLdlhbMVaKsTFPyPy16LX4vunIH/egAAAABJRU5ErkJggg== </value> </data> </root> DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -1199,6 +1199,12 @@ <Compile Include="DevFrm\Warehouse\Frm_MesShouTuiDj.Designer.cs"> <DependentUpon>Frm_MesShouTuiDj.cs</DependentUpon> </Compile> <Compile Include="DevFrm\Warehouse\Frm_MesDbck_Print_Select.cs"> <SubType>Form</SubType> </Compile> <Compile Include="DevFrm\Warehouse\Frm_MesDbck_Print_Select.Designer.cs"> <DependentUpon>Frm_MesDbck_Print_Select.cs</DependentUpon> </Compile> <Compile Include="DevFrm\Warehouse\Models\MesDepots.cs" /> <Compile Include="DevFrm\Warehouse\Models\MesDepotSections.cs" /> <Compile Include="DevFrm\Warehouse\Models\MesInvItemOutCDetails.cs" /> @@ -2247,6 +2253,9 @@ <EmbeddedResource Include="DevFrm\Warehouse\Frm_MesShouTuiDj.resx"> <DependentUpon>Frm_MesShouTuiDj.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\Warehouse\Frm_MesDbck_Print_Select.resx"> <DependentUpon>Frm_MesDbck_Print_Select.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\Warehouse\SelectSqmx.resx"> <DependentUpon>SelectSqmx.cs</DependentUpon> </EmbeddedResource>