| 
														
															@@ -113,7 +113,11 @@ namespace MOKA_Factory_Tools 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             { 
														 | 
														
														 | 
														
															             { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 TestMode.testMode = false; 
														 | 
														
														 | 
														
															                 TestMode.testMode = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 TestMode.SetTestMode(); 
														 | 
														
														 | 
														
															                 TestMode.SetTestMode(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#if DEBUG 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                TestMode.MAC = "C4-00-AD-17-61-3D&C4-00-AD-17-61-3C&"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#else 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 TestMode.MAC = CommonMethod.GetMacAddress(); 
														 | 
														
														 | 
														
															                 TestMode.MAC = CommonMethod.GetMacAddress(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#endif 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -125,7 +129,7 @@ namespace MOKA_Factory_Tools 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 enable = 3; 
														 | 
														
														 | 
														
															                 enable = 3; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             else if (PwdText.Text.Trim().Length > 0 && AccountText.Text.Trim().Length > 0) 
														 | 
														
														 | 
														
															             else if (PwdText.Text.Trim().Length > 0 && AccountText.Text.Trim().Length > 0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             { 
														 | 
														
														 | 
														
															             { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                #region G客户NTF功能开启; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#region G客户NTF功能开启; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if ( IsNTF ) 
														 | 
														
														 | 
														
															                 if ( IsNTF ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 { 
														 | 
														
														 | 
														
															                 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     if ( LineText.Text.Length == 0 ) 
														 | 
														
														 | 
														
															                     if ( LineText.Text.Length == 0 ) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -134,7 +138,7 @@ namespace MOKA_Factory_Tools 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         return; 
														 | 
														
														 | 
														
															                         return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                #endregion 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#endregion 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (CommonMethod.UserLogin(TestMode.loginUrl, AccountText.Text, PwdText.Text, TestMode.MAC, ErrorDB,out loginOutput1)) 
														 | 
														
														 | 
														
															                 if (CommonMethod.UserLogin(TestMode.loginUrl, AccountText.Text, PwdText.Text, TestMode.MAC, ErrorDB,out loginOutput1)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 { 
														 | 
														
														 | 
														
															                 { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -245,7 +249,7 @@ namespace MOKA_Factory_Tools 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     loginOutput1.factoryname = jObject["FactoryName"] == null ? "" : jObject["FactoryName"].Value<string>(); 
														 | 
														
														 | 
														
															                     loginOutput1.factoryname = jObject["FactoryName"] == null ? "" : jObject["FactoryName"].Value<string>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     loginOutput1.factorynum=jObject["FactoryNum"] == null ? "" : jObject["FactoryNum"].Value<string>(); 
														 | 
														
														 | 
														
															                     loginOutput1.factorynum=jObject["FactoryNum"] == null ? "" : jObject["FactoryNum"].Value<string>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     HttpHelper.Tracert = jObject["Tracert"] == null ? false : jObject["Tracert"].Value<bool>(); 
														 | 
														
														 | 
														
															                     HttpHelper.Tracert = jObject["Tracert"] == null ? false : jObject["Tracert"].Value<bool>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    #region G客户NTF功能开启; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#region G客户NTF功能开启; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     if (jObject["NTF"] != null) 
														 | 
														
														 | 
														
															                     if (jObject["NTF"] != null) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         IsNTF = jObject["NTF"].Value<bool>(); 
														 | 
														
														 | 
														
															                         IsNTF = jObject["NTF"].Value<bool>(); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -265,7 +269,7 @@ namespace MOKA_Factory_Tools 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             LineText.Text = Line; 
														 | 
														
														 | 
														
															                             LineText.Text = Line; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         } 
														 | 
														
														 | 
														
															                         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    #endregion 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#endregion 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }             
														 | 
														
														 | 
														
															             }             
														 | 
													
												
											
												
													
														| 
														 | 
														
															             System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("SCBC Factory Tools");//获取指定的进程名    
														 | 
														
														 | 
														
															             System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("SCBC Factory Tools");//获取指定的进程名    
														 |