コード例 #1
0
ファイル: Screens.cs プロジェクト: mnisl/OD
		///<summary></summary>
		public static void Update(OpenDentBusiness.Screen Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur);
				return;
			}
			Crud.ScreenCrud.Update(Cur);
		}
コード例 #2
0
ファイル: Screens.cs プロジェクト: mnisl/OD
		///<summary></summary>
		public static long Insert(OpenDentBusiness.Screen Cur) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Cur.ScreenNum=Meth.GetLong(MethodBase.GetCurrentMethod(),Cur);
				return Cur.ScreenNum;
			}
			return Crud.ScreenCrud.Insert(Cur);
		}
コード例 #3
0
ファイル: Screens.cs プロジェクト: mnisl/OD
		///<summary></summary>
		public static void Delete(OpenDentBusiness.Screen Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur);
				return;
			}
			string command = "DELETE from screen WHERE ScreenNum = '"+POut.Long(Cur.ScreenNum)+"'";
			Db.NonQ(command);
		}
コード例 #4
0
 public static string Create_AP_temp_table_string(OpenDentBusiness.DatabaseType type1)
 {
     string command = "";
     if(type1 == OpenDentBusiness.DatabaseType.MySql) {
         command = "CREATE TABLE " + TABLENAME + "_temp \n(\n"
             + "   tempIndex INT NOT NULL AUTO_INCREMENT PRIMARY KEY, \n"
             + "   Guarantor bigint NOT NULL, \n"
             + "   AllocStatus TINYINT\n)\n"
             + "DEFAULT CHARSET=utf8";
     }
     //else if(type1 == OpenDentBusiness.DatabaseType.Oracle)
     //	;// not implemented yet
     return command;
 }
コード例 #5
0
 public static string CreatTableString(OpenDentBusiness.DatabaseType type1)
 {
     // Note command to create table
     // //Db.NonQ(MyAllocator1_ProviderPayment.CreatTableString());
     // Put here for reference not for implementation of code. CreatTableString does not check for existance of table.
     string command = "";
     if(type1 == OpenDentBusiness.DatabaseType.MySql) {
         command = "CREATE TABLE " + TABLENAME + " ("
        + @"AllocNum INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
             AllocType TINYINT,
             Guarantor BIGINT NOT NULL,
             ProvNum bigint DEFAULT 0,
             PayTableSource TINYINT,
             PaySourceNum bigint,
             AllocToTableSource TINYINT,
             AllocToSourceNum int,
             Amount DECIMAL (10,2) NOT NULL,
             IsFullyAllocated TINYINT
             )
             DEFAULT CHARSET=utf8";
     }
     //else if (type1 == OpenDentBusiness.DatabaseType.Oracle)
     //;// not implemented yet
     return command;
 }