구매 sid 검사 기능 추가
This commit is contained in:
		| @@ -119,7 +119,7 @@ namespace FPJ0000 | ||||
|                 { | ||||
|                     this.richTextBoxEx1.Rtf = dr.원인2; | ||||
|                 } | ||||
|                 catch (Exception ex) | ||||
|                 catch  | ||||
|                 { | ||||
|                     this.richTextBoxEx1.Text = dr.원인; | ||||
|                 } | ||||
| @@ -136,7 +136,7 @@ namespace FPJ0000 | ||||
|                 { | ||||
|                     this.richTextBoxEx2.Rtf = dr.결과2; | ||||
|                 } | ||||
|                 catch (Exception ex) | ||||
|                 catch | ||||
|                 { | ||||
|                     this.richTextBoxEx2.Text = dr.결과; | ||||
|                 } | ||||
|   | ||||
| @@ -68,7 +68,7 @@ namespace FPJ0000.JobReport_ | ||||
|  | ||||
|  | ||||
|             //일반사용자 목록 가져온다 | ||||
|             IQueryable<IGrouping<String, vJobReportForUser>> userlist; | ||||
|             //IQueryable<IGrouping<String, vJobReportForUser>> userlist; | ||||
|  | ||||
|             //공정구분없이 전체사용자를 가져온다 | ||||
|             foreach (System.Data.DataRow item in userList.Rows) | ||||
|   | ||||
| @@ -257,7 +257,7 @@ namespace FPJ0000.JobReport_ | ||||
|                             var processName = grp.Max(t => t.userprocess); | ||||
|                             //string[] columns = new string[dv1.ColumnCount]; | ||||
|  | ||||
|                             var row = 0; | ||||
|                             //var row = 0; | ||||
|                             //columns[row++] = grp.Max(t => t.idx).ToString(); | ||||
|                             //columns[row++] = prjname; | ||||
|                             //columns[row++] = sdate; | ||||
| @@ -379,7 +379,7 @@ namespace FPJ0000.JobReport_ | ||||
|                             var status = prc.Max(t => t.status); | ||||
|                             //string[] columns = new string[dv1.ColumnCount]; | ||||
|  | ||||
|                             var row = 0; | ||||
|                             //var row = 0; | ||||
|                             //columns[row++] = grp.Max(t => t.idx).ToString(); | ||||
|                             //columns[row++] = prjname; | ||||
|                             //columns[row++] = sdate; | ||||
|   | ||||
| @@ -13,7 +13,7 @@ namespace FPJ0000.OtConfirm | ||||
|     public partial class fOTConfirmOK : Form | ||||
|     { | ||||
|         dsPRJ.JobReportRow[] dr; | ||||
|         Boolean binit = false; | ||||
|         //Boolean binit = false; | ||||
|  | ||||
|         public fOTConfirmOK(dsPRJ.JobReportRow[] dr_) | ||||
|         { | ||||
| @@ -28,7 +28,7 @@ namespace FPJ0000.OtConfirm | ||||
|         { | ||||
|             curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyreq)); | ||||
|             button1.Enabled = curLevel >= 5; | ||||
|             binit = true; | ||||
|             //binit = true; | ||||
|         } | ||||
|  | ||||
|         private void button1_Click(object sender, EventArgs e) | ||||
|   | ||||
| @@ -205,7 +205,7 @@ namespace FPJ0000 | ||||
|             var PO대기 = 0; //PR이 체크되어있으나 PO가 체크안된데이터 | ||||
|             var 구매진행 = 0; // PO가 체크되어있으나 입고수량이 구매수량보다 적은 경우 | ||||
|             var 구매완료 = 0; // 입고수량 >= 구매수량 | ||||
|             var 입력오류 = 0; | ||||
|             //var 입력오류 = 0; | ||||
|  | ||||
|  | ||||
|             var project = int.Parse(tbIdx.Text); | ||||
| @@ -217,8 +217,8 @@ namespace FPJ0000 | ||||
|             { | ||||
|                 var v_supply = string.Empty; | ||||
|                 var v_sid = string.Empty; | ||||
|                 Boolean bPR = false; | ||||
|                 Boolean bPO = false; | ||||
|                 //Boolean bPR = false; | ||||
|                 //Boolean bPO = false; | ||||
|  | ||||
|                 var row = this.fpSpread1.ActiveSheet.Rows[i]; | ||||
|                 //     var value_buy = this.fpSpread1.ActiveSheet.GetValue(i, col_buy); | ||||
|   | ||||
| @@ -288,11 +288,11 @@ namespace FPJ0000 | ||||
|             this.dr.CMP_Description = rtDesc.Rtf; | ||||
|             this.dr.CMP_Background = rtBack.Rtf; | ||||
|  | ||||
|             var s = "dbo.getUserName2(championid,usermanager) as name_champion," + | ||||
|    "dbo.getUserName2(designid,usermain) as name_design," + | ||||
|    "dbo.getUserName2(assemblyid,userAssembly) as name_assembly," + | ||||
|    "dbo.getUserName2(epanelid,userhw2) as name_epanel," + | ||||
|    "dbo.getUserName2(softwareid,usersub) as name_software"; | ||||
|    //         var s = "dbo.getUserName2(championid,usermanager) as name_champion," + | ||||
|    //"dbo.getUserName2(designid,usermain) as name_design," + | ||||
|    //"dbo.getUserName2(assemblyid,userAssembly) as name_assembly," + | ||||
|    //"dbo.getUserName2(epanelid,userhw2) as name_epanel," + | ||||
|    //"dbo.getUserName2(softwareid,usersub) as name_software"; | ||||
|  | ||||
|             //if (cmbChampion.SelectedIndex < 1) | ||||
|             //{ | ||||
|   | ||||
| @@ -1,45 +1,45 @@ | ||||
| using System; | ||||
| using System.IO; | ||||
| using System.Runtime.InteropServices; | ||||
| //using System; | ||||
| //using System.IO; | ||||
| //using System.Runtime.InteropServices; | ||||
|  | ||||
| namespace SqlServerTypes | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Utility methods related to CLR Types for SQL Server  | ||||
|     /// </summary> | ||||
|     public class Utilities | ||||
|     { | ||||
|         [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] | ||||
|         private static extern IntPtr LoadLibrary(string libname); | ||||
| //namespace SqlServerTypes | ||||
| //{ | ||||
| //    /// <summary> | ||||
| //    /// Utility methods related to CLR Types for SQL Server  | ||||
| //    /// </summary> | ||||
| //    public class Utilities | ||||
| //    { | ||||
| //        [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] | ||||
| //        private static extern IntPtr LoadLibrary(string libname); | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Loads the required native assemblies for the current architecture (x86 or x64) | ||||
|         /// </summary> | ||||
|         /// <param name="rootApplicationPath"> | ||||
|         /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications | ||||
|         /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications. | ||||
|         /// </param> | ||||
|         public static void LoadNativeAssemblies(string rootApplicationPath) | ||||
|         { | ||||
|             var nativeBinaryPath = IntPtr.Size > 4 | ||||
|                 ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\") | ||||
|                 : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\"); | ||||
| //        /// <summary> | ||||
| //        /// Loads the required native assemblies for the current architecture (x86 or x64) | ||||
| //        /// </summary> | ||||
| //        /// <param name="rootApplicationPath"> | ||||
| //        /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications | ||||
| //        /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications. | ||||
| //        /// </param> | ||||
| //        public static void LoadNativeAssemblies(string rootApplicationPath) | ||||
| //        { | ||||
| //            var nativeBinaryPath = IntPtr.Size > 4 | ||||
| //                ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\") | ||||
| //                : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\"); | ||||
|  | ||||
|             LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll"); | ||||
|             LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll"); | ||||
|         } | ||||
| //            LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll"); | ||||
| //            LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll"); | ||||
| //        } | ||||
|  | ||||
|         private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName) | ||||
|         { | ||||
|             var path = Path.Combine(nativeBinaryPath, assemblyName); | ||||
|             var ptr = LoadLibrary(path); | ||||
|             if (ptr == IntPtr.Zero) | ||||
|             { | ||||
|                 throw new Exception(string.Format( | ||||
|                     "Error loading {0} (ErrorCode: {1})", | ||||
|                     assemblyName, | ||||
|                     Marshal.GetLastWin32Error())); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| //        private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName) | ||||
| //        { | ||||
| //            var path = Path.Combine(nativeBinaryPath, assemblyName); | ||||
| //            var ptr = LoadLibrary(path); | ||||
| //            if (ptr == IntPtr.Zero) | ||||
| //            { | ||||
| //                throw new Exception(string.Format( | ||||
| //                    "Error loading {0} (ErrorCode: {1})", | ||||
| //                    assemblyName, | ||||
| //                    Marshal.GetLastWin32Error())); | ||||
| //            } | ||||
| //        } | ||||
| //    } | ||||
| //} | ||||
		Reference in New Issue
	
	Block a user
	 chi
					chi