├── AccountsSLTJ ├── SLTJAccountsDB.db ├── Resources │ ├── Login.jpg │ ├── close.png │ ├── Add Icon.ico │ └── 1024px-More_Icon_C.svg.png ├── packages.config ├── BAL │ ├── LoginBAL.cs │ ├── CategoryBAL.cs │ └── VoucherBAL.cs ├── App.config ├── Program.cs ├── DAL │ ├── VoucherDAL.cs │ ├── LoginDAL.cs │ ├── DataCon.cs │ └── CategoryDAL.cs ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Login.cs ├── Main.cs ├── Login.resx ├── AccountsSLTJ.csproj ├── Main.resx ├── Login.Designer.cs └── Main.Designer.cs ├── AccountsSLTJ.sln ├── .gitattributes └── .gitignore /AccountsSLTJ/SLTJAccountsDB.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/AccountsSLTJ/HEAD/AccountsSLTJ/SLTJAccountsDB.db -------------------------------------------------------------------------------- /AccountsSLTJ/Resources/Login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/AccountsSLTJ/HEAD/AccountsSLTJ/Resources/Login.jpg -------------------------------------------------------------------------------- /AccountsSLTJ/Resources/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/AccountsSLTJ/HEAD/AccountsSLTJ/Resources/close.png -------------------------------------------------------------------------------- /AccountsSLTJ/Resources/Add Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/AccountsSLTJ/HEAD/AccountsSLTJ/Resources/Add Icon.ico -------------------------------------------------------------------------------- /AccountsSLTJ/Resources/1024px-More_Icon_C.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/AccountsSLTJ/HEAD/AccountsSLTJ/Resources/1024px-More_Icon_C.svg.png -------------------------------------------------------------------------------- /AccountsSLTJ/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AccountsSLTJ/BAL/LoginBAL.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.DAL; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace AccountsSLTJ.BAL 9 | { 10 | class LoginBAL 11 | { 12 | public string Username { get; set; } 13 | public string Password { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /AccountsSLTJ/BAL/CategoryBAL.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AccountsSLTJ.BAL 8 | { 9 | class CategoryBAL 10 | { 11 | public int Category_ID { get; set; } 12 | public string Category_Name { get; set; } 13 | public string Description { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /AccountsSLTJ/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AccountsSLTJ/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace AccountsSLTJ 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Login()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /AccountsSLTJ/BAL/VoucherBAL.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AccountsSLTJ.BAL 8 | { 9 | class VoucherBAL 10 | { 11 | public int VoucherID { get; set; } 12 | public int VoucherType { get; set; } 13 | public string VoucherNumber { get; set; } 14 | public DateTime VoucherDate { get; set; } 15 | public int AccountID { get; set; } 16 | public int OppositeAccountID { get; set; } 17 | public decimal DebitAmount { get; set; } 18 | public decimal CreditAmount { get; set; } 19 | public string Description { get; set; } 20 | public DateTime EntryDate { get; set; } 21 | public string EnteredBy { get; set; } 22 | public int Category { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /AccountsSLTJ/DAL/VoucherDAL.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Data; 5 | using System.Data.OleDb; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace AccountsSLTJ.DAL 12 | { 13 | class VoucherDAL 14 | { 15 | DataCon Con = new DataCon(); 16 | public int VoucherID { get; set; } 17 | public int VoucherType { get; set; } 18 | public string VoucherNumber { get; set; } 19 | public DateTime VoucherDate { get; set; } 20 | public int AccountID { get; set; } 21 | public int OppositeAccountID { get; set; } 22 | public decimal DebitAmount { get; set; } 23 | public decimal CreditAmount { get; set; } 24 | public string Description { get; set; } 25 | public DateTime EntryDate { get; set; } 26 | public string EnteredBy { get; set; } 27 | public int Category { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /AccountsSLTJ/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <?xml version="1.0" encoding="utf-16"?> 7 | <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 8 | <ConnectionString>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\DBSLTJ.accdb</ConnectionString> 9 | <ProviderName>System.Data.OleDb</ProviderName> 10 | </SerializableConnectionString> 11 | Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\DBSLTJ.accdb 12 | 13 | 14 | -------------------------------------------------------------------------------- /AccountsSLTJ.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2036 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccountsSLTJ", "AccountsSLTJ\AccountsSLTJ.csproj", "{BCAE5383-CFEA-4CCE-BA16-F017190CCE46}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {BCAE5383-CFEA-4CCE-BA16-F017190CCE46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {BCAE5383-CFEA-4CCE-BA16-F017190CCE46}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {BCAE5383-CFEA-4CCE-BA16-F017190CCE46}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {BCAE5383-CFEA-4CCE-BA16-F017190CCE46}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {D479CFA2-9AA9-4C9C-B769-E5C3911A4955} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /AccountsSLTJ/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("AccountsSLTJ")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AccountsSLTJ")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("bcae5383-cfea-4cce-ba16-f017190cce46")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /AccountsSLTJ/DAL/LoginDAL.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using System; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Data.OleDb; 6 | using System.Data.SQLite; 7 | using System.Windows.Forms; 8 | 9 | namespace AccountsSLTJ.DAL 10 | { 11 | 12 | class LoginDAL 13 | { 14 | 15 | 16 | private static string LoadConnectionString(string id = "Default") 17 | { 18 | return ConfigurationManager.ConnectionStrings[id].ConnectionString; 19 | } 20 | 21 | public bool Authentication(LoginBAL Obj) 22 | { 23 | SQLiteConnection Con = new SQLiteConnection(LoadConnectionString()); 24 | try 25 | { 26 | if (ConnectionState.Closed == Con.State) 27 | { 28 | Con.Open(); 29 | } 30 | string Query = "SELECT * FROM tbl_Users Where Username ='" + Obj.Username + "' AND Password ='" + Obj.Password + "'"; 31 | SQLiteCommand cmd = new SQLiteCommand(Query, Con); 32 | SQLiteDataReader Reader = cmd.ExecuteReader(); 33 | 34 | if (Reader.HasRows) 35 | { 36 | Con.Close(); 37 | return true; 38 | } 39 | else 40 | { 41 | Con.Close(); 42 | return false; 43 | } 44 | } 45 | catch (Exception ex) 46 | { 47 | MessageBox.Show(ex.Message); 48 | throw; 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /AccountsSLTJ/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace AccountsSLTJ.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.ApplicationScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] 29 | [global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\DBSLTJ.accdb")] 30 | public string DBSLTJConnectionString { 31 | get { 32 | return ((string)(this["DBSLTJConnectionString"])); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /AccountsSLTJ/DAL/DataCon.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using Dapper; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Configuration; 6 | using System.Data; 7 | using System.Data.OleDb; 8 | using System.Data.SQLite; 9 | using System.Linq; 10 | using System.Text; 11 | using System.Threading.Tasks; 12 | 13 | namespace AccountsSLTJ.DAL 14 | { 15 | class DataCon 16 | { 17 | public static List GetAllVouchers() 18 | { 19 | using (IDbConnection Con = new SQLiteConnection(LoadConnectionString())) 20 | { 21 | var Voucher = Con.Query("SELECT * FROM tbl_Vouchers", new DynamicParameters()); 22 | return Voucher.ToList(); 23 | } 24 | } 25 | 26 | public void SaveVoucher(VoucherBAL Voucher) 27 | { 28 | using (IDbConnection Con = new SQLiteConnection(LoadConnectionString())) 29 | { 30 | Con.Execute(@"INSERT INTO tbl_Vouchers (Voucher_Type, Voucher_Number, Voucher_Date,Account_ID, 31 | O_Account_ID,Debit_Amount,Credit_Amount, 32 | Description,Entry_Date,Entered_By,Category) VALUES ('" + Voucher.VoucherType + "'," + 33 | "'" + Voucher.VoucherNumber + "','" + Voucher.VoucherDate + "'," + 34 | "'" + Voucher.AccountID + "','" + Voucher.OppositeAccountID + "','" + Voucher.DebitAmount + "'," + 35 | "'" + Voucher.CreditAmount + "','" + Voucher.Description + "','" + Voucher.EntryDate + "'," + 36 | "'" + Voucher.EnteredBy + "','" + Voucher.Category + "') ", Voucher); 37 | } 38 | } 39 | 40 | private static string LoadConnectionString(string id = "Default") 41 | { 42 | return ConfigurationManager.ConnectionStrings[id].ConnectionString; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /AccountsSLTJ/Login.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using AccountsSLTJ.DAL; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel; 6 | using System.Data; 7 | using System.Drawing; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace AccountsSLTJ 14 | { 15 | public partial class Login : Form 16 | { 17 | LoginDAL DAL = new LoginDAL(); 18 | LoginBAL Obj = new LoginBAL(); 19 | Main MainForm = new Main(); 20 | public Login() 21 | { 22 | InitializeComponent(); 23 | } 24 | 25 | private void PBoxLoginButton_Click(object sender, EventArgs e) 26 | { 27 | if (TxtUsername.Text != "" && TxtPassword.Text != "") 28 | { 29 | Obj.Username = TxtUsername.Text.Trim(); 30 | Obj.Password = TxtPassword.Text.Trim(); 31 | bool Result = DAL.Authentication(Obj); 32 | if (Result == true) 33 | { 34 | MainForm.Show(); 35 | Hide(); 36 | } 37 | else 38 | { 39 | MessageBox.Show("Username or Password Invalid"); 40 | } 41 | } 42 | else 43 | { 44 | MessageBox.Show("Username or Password Cannot be Empty"); 45 | } 46 | } 47 | 48 | private void PBoxCloseButton_Click(object sender, EventArgs e) 49 | { 50 | Application.Exit(); 51 | } 52 | 53 | private void TxtPassword_KeyPress(object sender, KeyPressEventArgs e) 54 | { 55 | if (e.KeyChar == 13) 56 | { 57 | if (TxtUsername.Text != "" && TxtPassword.Text != "") 58 | { 59 | Obj.Username = TxtUsername.Text.Trim(); 60 | Obj.Password = TxtPassword.Text.Trim(); 61 | bool Result = DAL.Authentication(Obj); 62 | if (Result == true) 63 | { 64 | MainForm.Show(); 65 | Hide(); 66 | } 67 | else 68 | { 69 | MessageBox.Show("Username or Password Invalid"); 70 | } 71 | } 72 | else 73 | { 74 | MessageBox.Show("Username or Password Cannot be Empty"); 75 | } 76 | } 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /AccountsSLTJ/DAL/CategoryDAL.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using Dapper; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Configuration; 6 | using System.Data; 7 | using System.Data.OleDb; 8 | using System.Data.SQLite; 9 | using System.Linq; 10 | using System.Text; 11 | using System.Threading.Tasks; 12 | using System.Windows.Forms; 13 | 14 | namespace AccountsSLTJ.DAL 15 | { 16 | class CategoryDAL 17 | { 18 | private static string LoadConnectionString(string id = "Default") 19 | { 20 | return ConfigurationManager.ConnectionStrings[id].ConnectionString; 21 | } 22 | 23 | public bool InsertAccount(CategoryBAL c) 24 | { 25 | try 26 | { 27 | using (SQLiteConnection Con = new SQLiteConnection(LoadConnectionString())) 28 | { 29 | Con.Open(); 30 | string Query = @"INSERT INTO tbl_Categories (Category_Name,Description) 31 | VALUES ('" + c.Category_Name + "','" + c.Description + "')"; 32 | SQLiteCommand cmd = new SQLiteCommand(Query, Con); 33 | cmd.ExecuteNonQuery(); 34 | Con.Close(); 35 | return true; 36 | } 37 | } 38 | catch (Exception ex) 39 | { 40 | MessageBox.Show(ex.Message); 41 | return false; 42 | } 43 | } 44 | 45 | public DataTable GetCategory() 46 | { 47 | SQLiteConnection Con = new SQLiteConnection(LoadConnectionString()); 48 | try 49 | { 50 | if (ConnectionState.Closed == Con.State) 51 | { 52 | Con.Open(); 53 | } 54 | string Query = "SELECT * FROM tbl_Categories"; 55 | SQLiteDataAdapter cmd = new SQLiteDataAdapter(Query, Con); 56 | DataTable dt = new DataTable(); 57 | cmd.Fill(dt); 58 | Con.Close(); 59 | return dt; 60 | } 61 | catch (Exception ex) 62 | { 63 | MessageBox.Show(ex.Message); 64 | throw; 65 | } 66 | } 67 | 68 | public DataSet FillComboBox() 69 | { 70 | SQLiteConnection Con = new SQLiteConnection(LoadConnectionString()); 71 | try 72 | { 73 | Con.Open(); 74 | string Query = "SELECT * FROM tbl_Categories"; 75 | SQLiteDataAdapter cmd = new SQLiteDataAdapter(Query, Con); 76 | DataSet ds = new DataSet(); 77 | cmd.Fill(ds); 78 | Con.Close(); 79 | return ds; 80 | } 81 | catch (Exception ex) 82 | { 83 | MessageBox.Show(ex.Message); 84 | throw; 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /AccountsSLTJ/Main.cs: -------------------------------------------------------------------------------- 1 | using AccountsSLTJ.BAL; 2 | using AccountsSLTJ.DAL; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel; 6 | using System.Data; 7 | using System.Drawing; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace AccountsSLTJ 14 | { 15 | public partial class Main : Form 16 | { 17 | VoucherDAL d = new VoucherDAL(); 18 | CategoryDAL c = new CategoryDAL(); 19 | DataCon v = new DataCon(); 20 | List Voucher = new List(); 21 | List Account = new List(); 22 | 23 | public Main() 24 | { 25 | InitializeComponent(); 26 | } 27 | 28 | private void LoadVoucher() 29 | { 30 | Voucher = DataCon.GetAllVouchers(); 31 | } 32 | 33 | private void tbl_CategoriesBindingNavigatorSaveItem_Click(object sender, EventArgs e) 34 | { 35 | this.Validate(); 36 | this.tbl_CategoriesBindingSource.EndEdit(); 37 | } 38 | 39 | private void Main_Load(object sender, EventArgs e) 40 | { 41 | FormLoad(); 42 | } 43 | 44 | public void FormLoad() 45 | { 46 | LoadAccountIDComboBox(); 47 | LoadDGvCategory(); 48 | } 49 | 50 | public void LoadAccountIDComboBox() 51 | { 52 | DataTable dt = c.GetCategory(); 53 | CmbAccountID.ValueMember= "Category_ID"; 54 | CmbAccountID.DisplayMember = "Category_Name"; 55 | CmbAccountID.DataSource = dt; 56 | } 57 | 58 | private void pictureBox1_Click(object sender, EventArgs e) 59 | { 60 | Application.Exit(); 61 | } 62 | 63 | public void LoadDGvCategory() 64 | { 65 | DGVCategory.DataSource = c.GetCategory(); 66 | } 67 | 68 | private void PBoxAddRecordButton_Click(object sender, EventArgs e) 69 | { 70 | VoucherBAL VObject = new VoucherBAL(); 71 | 72 | if (CmbVoucherType.DisplayMember == "Expense") 73 | { 74 | VObject.VoucherType = 1; 75 | } 76 | else if (CmbVoucherType.DisplayMember == "Income") 77 | { 78 | VObject.VoucherType = 2; 79 | } 80 | 81 | VObject.VoucherNumber = TxtVoucherNumber.Text.Trim(); 82 | VObject.VoucherDate = DTPVoucherDate.Value; 83 | VObject.AccountID = Convert.ToInt32(CmbAccountID.ValueMember); 84 | VObject.OppositeAccountID = Convert.ToInt32(CmbOppositeAccountID.ValueMember); 85 | VObject.DebitAmount = Convert.ToDecimal(TxtDebitAmount.Text.Trim()); 86 | VObject.CreditAmount = Convert.ToDecimal(TxtCreditAmount.Text.Trim()); 87 | VObject.Description = TextDescription.Text.Trim(); 88 | VObject.EntryDate = DTPEntryDate.Value; 89 | VObject.EnteredBy = TxtEnteredBy.Text.Trim(); 90 | VObject.Category = Convert.ToInt32(CmbCategory.ValueMember); 91 | v.SaveVoucher(VObject); 92 | } 93 | 94 | private void CmbAccountID_SelectedIndexChanged(object sender, EventArgs e) 95 | { 96 | LblVM.Text = CmbAccountID.ValueMember.ToString(); 97 | } 98 | 99 | private void PBoxAddCategory_Click(object sender, EventArgs e) 100 | { 101 | CategoryBAL cat = new CategoryBAL 102 | { 103 | Category_Name = TxtAccountName.Text.Trim(), 104 | Description = TxtDescription.Text.Trim() 105 | }; 106 | 107 | bool Result = c.InsertAccount(cat); 108 | if (Result == true) 109 | { 110 | LblMessage.Visible = true; 111 | LblMessage.Text = "Category Added"; 112 | LoadDGvCategory(); 113 | LoadAccountIDComboBox(); 114 | } 115 | else 116 | { 117 | MessageBox.Show("Something Went Wrong"); 118 | } 119 | } 120 | 121 | private void TLabelMessage_Tick(object sender, EventArgs e) 122 | { 123 | LblMessage.Visible = false; 124 | } 125 | 126 | private void DGVCategory_CellClick(object sender, DataGridViewCellEventArgs e) 127 | { 128 | if (DGVCategory.SelectedRows.Count > 0) 129 | { 130 | 131 | } 132 | } 133 | } 134 | } 135 | -------------------------------------------------------------------------------- /AccountsSLTJ/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace AccountsSLTJ.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AccountsSLTJ.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap _1024px_More_Icon_C_svg { 67 | get { 68 | object obj = ResourceManager.GetObject("1024px-More_Icon_C.svg", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap Add_Icon { 77 | get { 78 | object obj = ResourceManager.GetObject("Add Icon", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap close { 87 | get { 88 | object obj = ResourceManager.GetObject("close", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap Login { 97 | get { 98 | object obj = ResourceManager.GetObject("Login", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /AccountsSLTJ/Login.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /AccountsSLTJ/AccountsSLTJ.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {BCAE5383-CFEA-4CCE-BA16-F017190CCE46} 8 | WinExe 9 | AccountsSLTJ 10 | AccountsSLTJ 11 | v4.6 12 | 512 13 | true 14 | true 15 | 16 | 17 | 18 | 19 | AnyCPU 20 | true 21 | full 22 | false 23 | bin\Debug\ 24 | DEBUG;TRACE 25 | prompt 26 | 4 27 | 28 | 29 | AnyCPU 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | 37 | 38 | 39 | ..\packages\Dapper.1.50.5\lib\net451\Dapper.dll 40 | 41 | 42 | 43 | 44 | 45 | ..\packages\System.Data.SQLite.Core.1.0.109.2\lib\net46\System.Data.SQLite.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | Form 67 | 68 | 69 | Login.cs 70 | 71 | 72 | Form 73 | 74 | 75 | Main.cs 76 | 77 | 78 | 79 | 80 | Login.cs 81 | 82 | 83 | Main.cs 84 | 85 | 86 | ResXFileCodeGenerator 87 | Resources.Designer.cs 88 | Designer 89 | 90 | 91 | True 92 | Resources.resx 93 | True 94 | 95 | 96 | 97 | SettingsSingleFileGenerator 98 | Settings.Designer.cs 99 | 100 | 101 | True 102 | Settings.settings 103 | True 104 | 105 | 106 | PreserveNewest 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 123 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /AccountsSLTJ/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\Resources\Add Icon.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\Resources\Login.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | ..\Resources\1024px-More_Icon_C.svg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 132 | 133 | -------------------------------------------------------------------------------- /AccountsSLTJ/Main.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 26, 15 122 | 123 | 124 | 222, 15 125 | 126 | 127 | 20, 56 128 | 129 | 130 | 229, 57 131 | 132 | 133 | 411, 17 134 | 135 | 136 | 107 137 | 138 | -------------------------------------------------------------------------------- /AccountsSLTJ/Login.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace AccountsSLTJ 2 | { 3 | partial class Login 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.label2 = new System.Windows.Forms.Label(); 33 | this.TxtUsername = new System.Windows.Forms.TextBox(); 34 | this.label3 = new System.Windows.Forms.Label(); 35 | this.TxtPassword = new System.Windows.Forms.TextBox(); 36 | this.PBoxCloseButton = new System.Windows.Forms.PictureBox(); 37 | this.PBoxLoginButton = new System.Windows.Forms.PictureBox(); 38 | ((System.ComponentModel.ISupportInitialize)(this.PBoxCloseButton)).BeginInit(); 39 | ((System.ComponentModel.ISupportInitialize)(this.PBoxLoginButton)).BeginInit(); 40 | this.SuspendLayout(); 41 | // 42 | // label1 43 | // 44 | this.label1.AutoSize = true; 45 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 46 | this.label1.Location = new System.Drawing.Point(32, 29); 47 | this.label1.Name = "label1"; 48 | this.label1.Size = new System.Drawing.Size(496, 37); 49 | this.label1.TabIndex = 0; 50 | this.label1.Text = "Welcome to SLTJ HO Accounts"; 51 | // 52 | // label2 53 | // 54 | this.label2.AutoSize = true; 55 | this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 56 | this.label2.Location = new System.Drawing.Point(54, 95); 57 | this.label2.Name = "label2"; 58 | this.label2.Size = new System.Drawing.Size(118, 25); 59 | this.label2.TabIndex = 1; 60 | this.label2.Text = "Username"; 61 | // 62 | // TxtUsername 63 | // 64 | this.TxtUsername.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 65 | this.TxtUsername.Location = new System.Drawing.Point(178, 91); 66 | this.TxtUsername.Name = "TxtUsername"; 67 | this.TxtUsername.Size = new System.Drawing.Size(224, 29); 68 | this.TxtUsername.TabIndex = 2; 69 | // 70 | // label3 71 | // 72 | this.label3.AutoSize = true; 73 | this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 74 | this.label3.Location = new System.Drawing.Point(54, 139); 75 | this.label3.Name = "label3"; 76 | this.label3.Size = new System.Drawing.Size(114, 25); 77 | this.label3.TabIndex = 3; 78 | this.label3.Text = "Password"; 79 | // 80 | // TxtPassword 81 | // 82 | this.TxtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 83 | this.TxtPassword.Location = new System.Drawing.Point(178, 137); 84 | this.TxtPassword.Name = "TxtPassword"; 85 | this.TxtPassword.Size = new System.Drawing.Size(224, 29); 86 | this.TxtPassword.TabIndex = 4; 87 | this.TxtPassword.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TxtPassword_KeyPress); 88 | // 89 | // PBoxCloseButton 90 | // 91 | this.PBoxCloseButton.Image = global::AccountsSLTJ.Properties.Resources.close; 92 | this.PBoxCloseButton.Location = new System.Drawing.Point(296, 201); 93 | this.PBoxCloseButton.Name = "PBoxCloseButton"; 94 | this.PBoxCloseButton.Size = new System.Drawing.Size(106, 102); 95 | this.PBoxCloseButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 96 | this.PBoxCloseButton.TabIndex = 6; 97 | this.PBoxCloseButton.TabStop = false; 98 | this.PBoxCloseButton.Click += new System.EventHandler(this.PBoxCloseButton_Click); 99 | // 100 | // PBoxLoginButton 101 | // 102 | this.PBoxLoginButton.Image = global::AccountsSLTJ.Properties.Resources.Login; 103 | this.PBoxLoginButton.Location = new System.Drawing.Point(178, 201); 104 | this.PBoxLoginButton.Name = "PBoxLoginButton"; 105 | this.PBoxLoginButton.Size = new System.Drawing.Size(106, 102); 106 | this.PBoxLoginButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 107 | this.PBoxLoginButton.TabIndex = 5; 108 | this.PBoxLoginButton.TabStop = false; 109 | this.PBoxLoginButton.Click += new System.EventHandler(this.PBoxLoginButton_Click); 110 | // 111 | // Login 112 | // 113 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 114 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 115 | this.BackColor = System.Drawing.Color.White; 116 | this.ClientSize = new System.Drawing.Size(561, 351); 117 | this.Controls.Add(this.PBoxCloseButton); 118 | this.Controls.Add(this.PBoxLoginButton); 119 | this.Controls.Add(this.TxtPassword); 120 | this.Controls.Add(this.label3); 121 | this.Controls.Add(this.TxtUsername); 122 | this.Controls.Add(this.label2); 123 | this.Controls.Add(this.label1); 124 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 125 | this.Name = "Login"; 126 | this.Opacity = 0.9D; 127 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 128 | this.Text = "Welcome to SLTJ HO Accounts "; 129 | ((System.ComponentModel.ISupportInitialize)(this.PBoxCloseButton)).EndInit(); 130 | ((System.ComponentModel.ISupportInitialize)(this.PBoxLoginButton)).EndInit(); 131 | this.ResumeLayout(false); 132 | this.PerformLayout(); 133 | 134 | } 135 | 136 | #endregion 137 | 138 | private System.Windows.Forms.Label label1; 139 | private System.Windows.Forms.Label label2; 140 | private System.Windows.Forms.TextBox TxtUsername; 141 | private System.Windows.Forms.Label label3; 142 | private System.Windows.Forms.TextBox TxtPassword; 143 | private System.Windows.Forms.PictureBox PBoxLoginButton; 144 | private System.Windows.Forms.PictureBox PBoxCloseButton; 145 | } 146 | } 147 | 148 | -------------------------------------------------------------------------------- /AccountsSLTJ/Main.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace AccountsSLTJ 2 | { 3 | partial class Main 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.tbl_CategoriesBindingSource = new System.Windows.Forms.BindingSource(this.components); 33 | this.tabControl1 = new System.Windows.Forms.TabControl(); 34 | this.CreateVoucher = new System.Windows.Forms.TabPage(); 35 | this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 36 | this.TxtEnteredBy = new System.Windows.Forms.TextBox(); 37 | this.TxtCreditAmount = new System.Windows.Forms.TextBox(); 38 | this.TxtDebitAmount = new System.Windows.Forms.TextBox(); 39 | this.TxtVoucherNumber = new System.Windows.Forms.TextBox(); 40 | this.label1 = new System.Windows.Forms.Label(); 41 | this.label8 = new System.Windows.Forms.Label(); 42 | this.label2 = new System.Windows.Forms.Label(); 43 | this.label7 = new System.Windows.Forms.Label(); 44 | this.label3 = new System.Windows.Forms.Label(); 45 | this.label6 = new System.Windows.Forms.Label(); 46 | this.label4 = new System.Windows.Forms.Label(); 47 | this.label5 = new System.Windows.Forms.Label(); 48 | this.label9 = new System.Windows.Forms.Label(); 49 | this.label10 = new System.Windows.Forms.Label(); 50 | this.label11 = new System.Windows.Forms.Label(); 51 | this.TextDescription = new System.Windows.Forms.RichTextBox(); 52 | this.DTPVoucherDate = new System.Windows.Forms.DateTimePicker(); 53 | this.CmbVoucherType = new System.Windows.Forms.ComboBox(); 54 | this.DTPEntryDate = new System.Windows.Forms.DateTimePicker(); 55 | this.CmbCategory = new System.Windows.Forms.ComboBox(); 56 | this.tblCategoriesBindingSource = new System.Windows.Forms.BindingSource(this.components); 57 | this.PBoxAddRecordButton = new System.Windows.Forms.PictureBox(); 58 | this.CmbAccountID = new System.Windows.Forms.ComboBox(); 59 | this.CmbOppositeAccountID = new System.Windows.Forms.ComboBox(); 60 | this.LblVM = new System.Windows.Forms.Label(); 61 | this.ViewReports = new System.Windows.Forms.TabPage(); 62 | this.dataGridView1 = new System.Windows.Forms.DataGridView(); 63 | this.AddCategory = new System.Windows.Forms.TabPage(); 64 | this.DGVCategory = new System.Windows.Forms.DataGridView(); 65 | this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); 66 | this.TxtDescription = new System.Windows.Forms.TextBox(); 67 | this.label12 = new System.Windows.Forms.Label(); 68 | this.label14 = new System.Windows.Forms.Label(); 69 | this.PBoxAddCategory = new System.Windows.Forms.PictureBox(); 70 | this.TxtAccountName = new System.Windows.Forms.TextBox(); 71 | this.tblCategoriesBindingSource1 = new System.Windows.Forms.BindingSource(this.components); 72 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 73 | this.tblCategoriesBindingSource2 = new System.Windows.Forms.BindingSource(this.components); 74 | this.LblMessage = new System.Windows.Forms.Label(); 75 | this.TLabelMessage = new System.Windows.Forms.Timer(this.components); 76 | ((System.ComponentModel.ISupportInitialize)(this.tbl_CategoriesBindingSource)).BeginInit(); 77 | this.tabControl1.SuspendLayout(); 78 | this.CreateVoucher.SuspendLayout(); 79 | this.tableLayoutPanel1.SuspendLayout(); 80 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource)).BeginInit(); 81 | ((System.ComponentModel.ISupportInitialize)(this.PBoxAddRecordButton)).BeginInit(); 82 | this.ViewReports.SuspendLayout(); 83 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); 84 | this.AddCategory.SuspendLayout(); 85 | ((System.ComponentModel.ISupportInitialize)(this.DGVCategory)).BeginInit(); 86 | this.tableLayoutPanel2.SuspendLayout(); 87 | ((System.ComponentModel.ISupportInitialize)(this.PBoxAddCategory)).BeginInit(); 88 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource1)).BeginInit(); 89 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 90 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource2)).BeginInit(); 91 | this.SuspendLayout(); 92 | // 93 | // tbl_CategoriesBindingSource 94 | // 95 | this.tbl_CategoriesBindingSource.DataMember = "tbl_Categories"; 96 | // 97 | // tabControl1 98 | // 99 | this.tabControl1.Controls.Add(this.CreateVoucher); 100 | this.tabControl1.Controls.Add(this.ViewReports); 101 | this.tabControl1.Controls.Add(this.AddCategory); 102 | this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 103 | this.tabControl1.Location = new System.Drawing.Point(11, 46); 104 | this.tabControl1.Name = "tabControl1"; 105 | this.tabControl1.SelectedIndex = 0; 106 | this.tabControl1.Size = new System.Drawing.Size(870, 576); 107 | this.tabControl1.TabIndex = 0; 108 | // 109 | // CreateVoucher 110 | // 111 | this.CreateVoucher.Controls.Add(this.tableLayoutPanel1); 112 | this.CreateVoucher.Location = new System.Drawing.Point(4, 25); 113 | this.CreateVoucher.Name = "CreateVoucher"; 114 | this.CreateVoucher.Padding = new System.Windows.Forms.Padding(3); 115 | this.CreateVoucher.Size = new System.Drawing.Size(862, 547); 116 | this.CreateVoucher.TabIndex = 0; 117 | this.CreateVoucher.Text = "Create Voucher"; 118 | this.CreateVoucher.UseVisualStyleBackColor = true; 119 | // 120 | // tableLayoutPanel1 121 | // 122 | this.tableLayoutPanel1.ColumnCount = 3; 123 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 43.55231F)); 124 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 56.44769F)); 125 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 236F)); 126 | this.tableLayoutPanel1.Controls.Add(this.TxtEnteredBy, 1, 9); 127 | this.tableLayoutPanel1.Controls.Add(this.TxtCreditAmount, 1, 6); 128 | this.tableLayoutPanel1.Controls.Add(this.TxtDebitAmount, 1, 5); 129 | this.tableLayoutPanel1.Controls.Add(this.TxtVoucherNumber, 1, 1); 130 | this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); 131 | this.tableLayoutPanel1.Controls.Add(this.label8, 0, 7); 132 | this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); 133 | this.tableLayoutPanel1.Controls.Add(this.label7, 0, 6); 134 | this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); 135 | this.tableLayoutPanel1.Controls.Add(this.label6, 0, 5); 136 | this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3); 137 | this.tableLayoutPanel1.Controls.Add(this.label5, 0, 4); 138 | this.tableLayoutPanel1.Controls.Add(this.label9, 0, 8); 139 | this.tableLayoutPanel1.Controls.Add(this.label10, 0, 9); 140 | this.tableLayoutPanel1.Controls.Add(this.label11, 0, 10); 141 | this.tableLayoutPanel1.Controls.Add(this.TextDescription, 1, 7); 142 | this.tableLayoutPanel1.Controls.Add(this.DTPVoucherDate, 1, 2); 143 | this.tableLayoutPanel1.Controls.Add(this.CmbVoucherType, 1, 0); 144 | this.tableLayoutPanel1.Controls.Add(this.DTPEntryDate, 1, 8); 145 | this.tableLayoutPanel1.Controls.Add(this.CmbCategory, 1, 10); 146 | this.tableLayoutPanel1.Controls.Add(this.PBoxAddRecordButton, 1, 11); 147 | this.tableLayoutPanel1.Controls.Add(this.CmbAccountID, 1, 3); 148 | this.tableLayoutPanel1.Controls.Add(this.CmbOppositeAccountID, 1, 4); 149 | this.tableLayoutPanel1.Controls.Add(this.LblVM, 2, 0); 150 | this.tableLayoutPanel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 151 | this.tableLayoutPanel1.Location = new System.Drawing.Point(21, 38); 152 | this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 153 | this.tableLayoutPanel1.RowCount = 12; 154 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.72414F)); 155 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.27586F)); 156 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 157 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 158 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); 159 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F)); 160 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); 161 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F)); 162 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F)); 163 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); 164 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); 165 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 128F)); 166 | this.tableLayoutPanel1.Size = new System.Drawing.Size(666, 482); 167 | this.tableLayoutPanel1.TabIndex = 9; 168 | // 169 | // TxtEnteredBy 170 | // 171 | this.TxtEnteredBy.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 172 | this.TxtEnteredBy.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 173 | this.TxtEnteredBy.Location = new System.Drawing.Point(190, 300); 174 | this.TxtEnteredBy.Name = "TxtEnteredBy"; 175 | this.TxtEnteredBy.Size = new System.Drawing.Size(236, 22); 176 | this.TxtEnteredBy.TabIndex = 21; 177 | // 178 | // TxtCreditAmount 179 | // 180 | this.TxtCreditAmount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 181 | this.TxtCreditAmount.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 182 | this.TxtCreditAmount.Location = new System.Drawing.Point(190, 166); 183 | this.TxtCreditAmount.Name = "TxtCreditAmount"; 184 | this.TxtCreditAmount.Size = new System.Drawing.Size(236, 22); 185 | this.TxtCreditAmount.TabIndex = 18; 186 | // 187 | // TxtDebitAmount 188 | // 189 | this.TxtDebitAmount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 190 | this.TxtDebitAmount.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 191 | this.TxtDebitAmount.Location = new System.Drawing.Point(190, 139); 192 | this.TxtDebitAmount.Name = "TxtDebitAmount"; 193 | this.TxtDebitAmount.Size = new System.Drawing.Size(236, 22); 194 | this.TxtDebitAmount.TabIndex = 17; 195 | // 196 | // TxtVoucherNumber 197 | // 198 | this.TxtVoucherNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 199 | this.TxtVoucherNumber.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 200 | this.TxtVoucherNumber.Location = new System.Drawing.Point(190, 33); 201 | this.TxtVoucherNumber.Name = "TxtVoucherNumber"; 202 | this.TxtVoucherNumber.Size = new System.Drawing.Size(236, 22); 203 | this.TxtVoucherNumber.TabIndex = 13; 204 | // 205 | // label1 206 | // 207 | this.label1.AutoSize = true; 208 | this.label1.BackColor = System.Drawing.Color.White; 209 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 210 | this.label1.Location = new System.Drawing.Point(3, 0); 211 | this.label1.Name = "label1"; 212 | this.label1.Size = new System.Drawing.Size(105, 16); 213 | this.label1.TabIndex = 1; 214 | this.label1.Text = "Voucher Type"; 215 | // 216 | // label8 217 | // 218 | this.label8.AutoSize = true; 219 | this.label8.BackColor = System.Drawing.Color.White; 220 | this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 221 | this.label8.Location = new System.Drawing.Point(3, 191); 222 | this.label8.Name = "label8"; 223 | this.label8.Size = new System.Drawing.Size(87, 16); 224 | this.label8.TabIndex = 8; 225 | this.label8.Text = "Description"; 226 | // 227 | // label2 228 | // 229 | this.label2.AutoSize = true; 230 | this.label2.BackColor = System.Drawing.Color.White; 231 | this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 232 | this.label2.Location = new System.Drawing.Point(3, 30); 233 | this.label2.Name = "label2"; 234 | this.label2.Size = new System.Drawing.Size(123, 16); 235 | this.label2.TabIndex = 2; 236 | this.label2.Text = "Voucher Number"; 237 | // 238 | // label7 239 | // 240 | this.label7.AutoSize = true; 241 | this.label7.BackColor = System.Drawing.Color.White; 242 | this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 243 | this.label7.Location = new System.Drawing.Point(3, 163); 244 | this.label7.Name = "label7"; 245 | this.label7.Size = new System.Drawing.Size(104, 16); 246 | this.label7.TabIndex = 7; 247 | this.label7.Text = "Credit Amount"; 248 | // 249 | // label3 250 | // 251 | this.label3.AutoSize = true; 252 | this.label3.BackColor = System.Drawing.Color.White; 253 | this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 254 | this.label3.Location = new System.Drawing.Point(3, 58); 255 | this.label3.Name = "label3"; 256 | this.label3.Size = new System.Drawing.Size(102, 16); 257 | this.label3.TabIndex = 3; 258 | this.label3.Text = "Voucher Date"; 259 | // 260 | // label6 261 | // 262 | this.label6.AutoSize = true; 263 | this.label6.BackColor = System.Drawing.Color.White; 264 | this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 265 | this.label6.Location = new System.Drawing.Point(3, 136); 266 | this.label6.Name = "label6"; 267 | this.label6.Size = new System.Drawing.Size(100, 16); 268 | this.label6.TabIndex = 6; 269 | this.label6.Text = "Debit Amount"; 270 | // 271 | // label4 272 | // 273 | this.label4.AutoSize = true; 274 | this.label4.BackColor = System.Drawing.Color.White; 275 | this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 276 | this.label4.Location = new System.Drawing.Point(3, 83); 277 | this.label4.Name = "label4"; 278 | this.label4.Size = new System.Drawing.Size(82, 16); 279 | this.label4.TabIndex = 4; 280 | this.label4.Text = "Account ID"; 281 | // 282 | // label5 283 | // 284 | this.label5.AutoSize = true; 285 | this.label5.BackColor = System.Drawing.Color.White; 286 | this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 287 | this.label5.Location = new System.Drawing.Point(3, 108); 288 | this.label5.Name = "label5"; 289 | this.label5.Size = new System.Drawing.Size(149, 16); 290 | this.label5.TabIndex = 5; 291 | this.label5.Text = "Opposite Account ID"; 292 | // 293 | // label9 294 | // 295 | this.label9.AutoSize = true; 296 | this.label9.BackColor = System.Drawing.Color.White; 297 | this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 298 | this.label9.Location = new System.Drawing.Point(3, 271); 299 | this.label9.Name = "label9"; 300 | this.label9.Size = new System.Drawing.Size(80, 16); 301 | this.label9.TabIndex = 9; 302 | this.label9.Text = "Entry Date"; 303 | // 304 | // label10 305 | // 306 | this.label10.AutoSize = true; 307 | this.label10.BackColor = System.Drawing.Color.White; 308 | this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 309 | this.label10.Location = new System.Drawing.Point(3, 297); 310 | this.label10.Name = "label10"; 311 | this.label10.Size = new System.Drawing.Size(84, 16); 312 | this.label10.TabIndex = 10; 313 | this.label10.Text = "Entered By"; 314 | // 315 | // label11 316 | // 317 | this.label11.AutoSize = true; 318 | this.label11.BackColor = System.Drawing.Color.White; 319 | this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 320 | this.label11.Location = new System.Drawing.Point(3, 325); 321 | this.label11.Name = "label11"; 322 | this.label11.Size = new System.Drawing.Size(75, 16); 323 | this.label11.TabIndex = 11; 324 | this.label11.Text = "Category "; 325 | // 326 | // TextDescription 327 | // 328 | this.TextDescription.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 329 | this.TextDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 330 | this.TextDescription.Location = new System.Drawing.Point(190, 194); 331 | this.TextDescription.Name = "TextDescription"; 332 | this.TextDescription.Size = new System.Drawing.Size(236, 74); 333 | this.TextDescription.TabIndex = 23; 334 | this.TextDescription.Text = ""; 335 | // 336 | // DTPVoucherDate 337 | // 338 | this.DTPVoucherDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; 339 | this.DTPVoucherDate.Location = new System.Drawing.Point(190, 61); 340 | this.DTPVoucherDate.Name = "DTPVoucherDate"; 341 | this.DTPVoucherDate.Size = new System.Drawing.Size(236, 22); 342 | this.DTPVoucherDate.TabIndex = 31; 343 | this.DTPVoucherDate.Value = new System.DateTime(2018, 12, 27, 0, 0, 0, 0); 344 | // 345 | // CmbVoucherType 346 | // 347 | this.CmbVoucherType.FormattingEnabled = true; 348 | this.CmbVoucherType.Items.AddRange(new object[] { 349 | "Expense ", 350 | "Income"}); 351 | this.CmbVoucherType.Location = new System.Drawing.Point(190, 3); 352 | this.CmbVoucherType.Name = "CmbVoucherType"; 353 | this.CmbVoucherType.Size = new System.Drawing.Size(236, 24); 354 | this.CmbVoucherType.TabIndex = 33; 355 | // 356 | // DTPEntryDate 357 | // 358 | this.DTPEntryDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; 359 | this.DTPEntryDate.Location = new System.Drawing.Point(190, 274); 360 | this.DTPEntryDate.MinDate = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); 361 | this.DTPEntryDate.Name = "DTPEntryDate"; 362 | this.DTPEntryDate.Size = new System.Drawing.Size(236, 22); 363 | this.DTPEntryDate.TabIndex = 34; 364 | this.DTPEntryDate.Value = new System.DateTime(2018, 12, 27, 0, 0, 0, 0); 365 | // 366 | // CmbCategory 367 | // 368 | this.CmbCategory.DataSource = this.tblCategoriesBindingSource; 369 | this.CmbCategory.DisplayMember = "Category_Name"; 370 | this.CmbCategory.FormattingEnabled = true; 371 | this.CmbCategory.Location = new System.Drawing.Point(190, 328); 372 | this.CmbCategory.Name = "CmbCategory"; 373 | this.CmbCategory.Size = new System.Drawing.Size(236, 24); 374 | this.CmbCategory.TabIndex = 36; 375 | this.CmbCategory.ValueMember = "Category_ID"; 376 | // 377 | // tblCategoriesBindingSource 378 | // 379 | this.tblCategoriesBindingSource.DataMember = "tbl_Categories"; 380 | // 381 | // PBoxAddRecordButton 382 | // 383 | this.PBoxAddRecordButton.Image = global::AccountsSLTJ.Properties.Resources._1024px_More_Icon_C_svg; 384 | this.PBoxAddRecordButton.Location = new System.Drawing.Point(190, 356); 385 | this.PBoxAddRecordButton.Name = "PBoxAddRecordButton"; 386 | this.PBoxAddRecordButton.Size = new System.Drawing.Size(123, 119); 387 | this.PBoxAddRecordButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 388 | this.PBoxAddRecordButton.TabIndex = 10; 389 | this.PBoxAddRecordButton.TabStop = false; 390 | this.PBoxAddRecordButton.Click += new System.EventHandler(this.PBoxAddRecordButton_Click); 391 | // 392 | // CmbAccountID 393 | // 394 | this.CmbAccountID.FormattingEnabled = true; 395 | this.CmbAccountID.Location = new System.Drawing.Point(190, 86); 396 | this.CmbAccountID.Name = "CmbAccountID"; 397 | this.CmbAccountID.Size = new System.Drawing.Size(236, 24); 398 | this.CmbAccountID.TabIndex = 39; 399 | this.CmbAccountID.SelectedIndexChanged += new System.EventHandler(this.CmbAccountID_SelectedIndexChanged); 400 | // 401 | // CmbOppositeAccountID 402 | // 403 | this.CmbOppositeAccountID.DataSource = this.tblCategoriesBindingSource; 404 | this.CmbOppositeAccountID.DisplayMember = "Category_Name"; 405 | this.CmbOppositeAccountID.FormattingEnabled = true; 406 | this.CmbOppositeAccountID.Location = new System.Drawing.Point(190, 111); 407 | this.CmbOppositeAccountID.Name = "CmbOppositeAccountID"; 408 | this.CmbOppositeAccountID.Size = new System.Drawing.Size(236, 24); 409 | this.CmbOppositeAccountID.TabIndex = 38; 410 | this.CmbOppositeAccountID.ValueMember = "Category_ID"; 411 | // 412 | // LblVM 413 | // 414 | this.LblVM.AutoSize = true; 415 | this.LblVM.BackColor = System.Drawing.Color.White; 416 | this.LblVM.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 417 | this.LblVM.Location = new System.Drawing.Point(432, 0); 418 | this.LblVM.Name = "LblVM"; 419 | this.LblVM.Size = new System.Drawing.Size(108, 16); 420 | this.LblVM.TabIndex = 40; 421 | this.LblVM.Text = "Value member"; 422 | // 423 | // ViewReports 424 | // 425 | this.ViewReports.Controls.Add(this.dataGridView1); 426 | this.ViewReports.Location = new System.Drawing.Point(4, 25); 427 | this.ViewReports.Name = "ViewReports"; 428 | this.ViewReports.Size = new System.Drawing.Size(862, 547); 429 | this.ViewReports.TabIndex = 2; 430 | this.ViewReports.Text = "View Reports"; 431 | this.ViewReports.UseVisualStyleBackColor = true; 432 | // 433 | // dataGridView1 434 | // 435 | this.dataGridView1.BackgroundColor = System.Drawing.Color.White; 436 | this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 437 | this.dataGridView1.Location = new System.Drawing.Point(23, 65); 438 | this.dataGridView1.Name = "dataGridView1"; 439 | this.dataGridView1.Size = new System.Drawing.Size(820, 464); 440 | this.dataGridView1.TabIndex = 0; 441 | // 442 | // AddCategory 443 | // 444 | this.AddCategory.Controls.Add(this.DGVCategory); 445 | this.AddCategory.Controls.Add(this.tableLayoutPanel2); 446 | this.AddCategory.Location = new System.Drawing.Point(4, 25); 447 | this.AddCategory.Name = "AddCategory"; 448 | this.AddCategory.Padding = new System.Windows.Forms.Padding(3); 449 | this.AddCategory.Size = new System.Drawing.Size(862, 547); 450 | this.AddCategory.TabIndex = 1; 451 | this.AddCategory.Text = "Add Accounts"; 452 | this.AddCategory.UseVisualStyleBackColor = true; 453 | // 454 | // DGVCategory 455 | // 456 | this.DGVCategory.AllowUserToAddRows = false; 457 | this.DGVCategory.AllowUserToDeleteRows = false; 458 | this.DGVCategory.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; 459 | this.DGVCategory.BackgroundColor = System.Drawing.Color.WhiteSmoke; 460 | this.DGVCategory.BorderStyle = System.Windows.Forms.BorderStyle.None; 461 | this.DGVCategory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 462 | this.DGVCategory.Location = new System.Drawing.Point(434, 21); 463 | this.DGVCategory.Name = "DGVCategory"; 464 | this.DGVCategory.ReadOnly = true; 465 | this.DGVCategory.Size = new System.Drawing.Size(417, 260); 466 | this.DGVCategory.TabIndex = 11; 467 | this.DGVCategory.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGVCategory_CellClick); 468 | // 469 | // tableLayoutPanel2 470 | // 471 | this.tableLayoutPanel2.ColumnCount = 2; 472 | this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34.19355F)); 473 | this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 65.80645F)); 474 | this.tableLayoutPanel2.Controls.Add(this.TxtDescription, 1, 1); 475 | this.tableLayoutPanel2.Controls.Add(this.label12, 0, 0); 476 | this.tableLayoutPanel2.Controls.Add(this.label14, 0, 1); 477 | this.tableLayoutPanel2.Controls.Add(this.PBoxAddCategory, 1, 2); 478 | this.tableLayoutPanel2.Controls.Add(this.TxtAccountName, 1, 0); 479 | this.tableLayoutPanel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 480 | this.tableLayoutPanel2.Location = new System.Drawing.Point(26, 21); 481 | this.tableLayoutPanel2.Name = "tableLayoutPanel2"; 482 | this.tableLayoutPanel2.RowCount = 3; 483 | this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.72414F)); 484 | this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.27586F)); 485 | this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 401F)); 486 | this.tableLayoutPanel2.Size = new System.Drawing.Size(402, 482); 487 | this.tableLayoutPanel2.TabIndex = 10; 488 | // 489 | // TxtDescription 490 | // 491 | this.TxtDescription.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 492 | this.TxtDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 493 | this.TxtDescription.Location = new System.Drawing.Point(140, 44); 494 | this.TxtDescription.Name = "TxtDescription"; 495 | this.TxtDescription.Size = new System.Drawing.Size(257, 22); 496 | this.TxtDescription.TabIndex = 13; 497 | // 498 | // label12 499 | // 500 | this.label12.AutoSize = true; 501 | this.label12.BackColor = System.Drawing.Color.White; 502 | this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 503 | this.label12.Location = new System.Drawing.Point(3, 0); 504 | this.label12.Name = "label12"; 505 | this.label12.Size = new System.Drawing.Size(108, 16); 506 | this.label12.TabIndex = 1; 507 | this.label12.Text = "Account Name"; 508 | // 509 | // label14 510 | // 511 | this.label14.AutoSize = true; 512 | this.label14.BackColor = System.Drawing.Color.White; 513 | this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 514 | this.label14.Location = new System.Drawing.Point(3, 41); 515 | this.label14.Name = "label14"; 516 | this.label14.Size = new System.Drawing.Size(87, 16); 517 | this.label14.TabIndex = 2; 518 | this.label14.Text = "Description"; 519 | // 520 | // PBoxAddCategory 521 | // 522 | this.PBoxAddCategory.Image = global::AccountsSLTJ.Properties.Resources._1024px_More_Icon_C_svg; 523 | this.PBoxAddCategory.Location = new System.Drawing.Point(140, 83); 524 | this.PBoxAddCategory.Name = "PBoxAddCategory"; 525 | this.PBoxAddCategory.Size = new System.Drawing.Size(123, 119); 526 | this.PBoxAddCategory.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 527 | this.PBoxAddCategory.TabIndex = 10; 528 | this.PBoxAddCategory.TabStop = false; 529 | this.PBoxAddCategory.Click += new System.EventHandler(this.PBoxAddCategory_Click); 530 | // 531 | // TxtAccountName 532 | // 533 | this.TxtAccountName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 534 | this.TxtAccountName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 535 | this.TxtAccountName.Location = new System.Drawing.Point(140, 3); 536 | this.TxtAccountName.Name = "TxtAccountName"; 537 | this.TxtAccountName.Size = new System.Drawing.Size(257, 22); 538 | this.TxtAccountName.TabIndex = 14; 539 | // 540 | // tblCategoriesBindingSource1 541 | // 542 | this.tblCategoriesBindingSource1.DataMember = "tbl_Categories"; 543 | // 544 | // pictureBox1 545 | // 546 | this.pictureBox1.Image = global::AccountsSLTJ.Properties.Resources.close; 547 | this.pictureBox1.Location = new System.Drawing.Point(847, 1); 548 | this.pictureBox1.Name = "pictureBox1"; 549 | this.pictureBox1.Size = new System.Drawing.Size(43, 41); 550 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 551 | this.pictureBox1.TabIndex = 1; 552 | this.pictureBox1.TabStop = false; 553 | this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); 554 | // 555 | // LblMessage 556 | // 557 | this.LblMessage.BackColor = System.Drawing.Color.LemonChiffon; 558 | this.LblMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 559 | this.LblMessage.ForeColor = System.Drawing.Color.DarkRed; 560 | this.LblMessage.Location = new System.Drawing.Point(-4, 0); 561 | this.LblMessage.Name = "LblMessage"; 562 | this.LblMessage.Size = new System.Drawing.Size(898, 41); 563 | this.LblMessage.TabIndex = 41; 564 | this.LblMessage.Text = "Message"; 565 | this.LblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 566 | this.LblMessage.Visible = false; 567 | // 568 | // TLabelMessage 569 | // 570 | this.TLabelMessage.Enabled = true; 571 | this.TLabelMessage.Interval = 10000; 572 | this.TLabelMessage.Tick += new System.EventHandler(this.TLabelMessage_Tick); 573 | // 574 | // Main 575 | // 576 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 577 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 578 | this.BackColor = System.Drawing.Color.White; 579 | this.ClientSize = new System.Drawing.Size(891, 632); 580 | this.Controls.Add(this.pictureBox1); 581 | this.Controls.Add(this.tabControl1); 582 | this.Controls.Add(this.LblMessage); 583 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 584 | this.Name = "Main"; 585 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 586 | this.Text = "Main"; 587 | this.Load += new System.EventHandler(this.Main_Load); 588 | ((System.ComponentModel.ISupportInitialize)(this.tbl_CategoriesBindingSource)).EndInit(); 589 | this.tabControl1.ResumeLayout(false); 590 | this.CreateVoucher.ResumeLayout(false); 591 | this.tableLayoutPanel1.ResumeLayout(false); 592 | this.tableLayoutPanel1.PerformLayout(); 593 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource)).EndInit(); 594 | ((System.ComponentModel.ISupportInitialize)(this.PBoxAddRecordButton)).EndInit(); 595 | this.ViewReports.ResumeLayout(false); 596 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); 597 | this.AddCategory.ResumeLayout(false); 598 | ((System.ComponentModel.ISupportInitialize)(this.DGVCategory)).EndInit(); 599 | this.tableLayoutPanel2.ResumeLayout(false); 600 | this.tableLayoutPanel2.PerformLayout(); 601 | ((System.ComponentModel.ISupportInitialize)(this.PBoxAddCategory)).EndInit(); 602 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource1)).EndInit(); 603 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 604 | ((System.ComponentModel.ISupportInitialize)(this.tblCategoriesBindingSource2)).EndInit(); 605 | this.ResumeLayout(false); 606 | 607 | } 608 | 609 | #endregion 610 | 611 | private System.Windows.Forms.BindingSource tbl_CategoriesBindingSource; 612 | private System.Windows.Forms.TabControl tabControl1; 613 | private System.Windows.Forms.TabPage CreateVoucher; 614 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 615 | private System.Windows.Forms.TextBox TxtEnteredBy; 616 | private System.Windows.Forms.TextBox TxtCreditAmount; 617 | private System.Windows.Forms.TextBox TxtDebitAmount; 618 | private System.Windows.Forms.TextBox TxtVoucherNumber; 619 | private System.Windows.Forms.Label label1; 620 | private System.Windows.Forms.Label label8; 621 | private System.Windows.Forms.Label label2; 622 | private System.Windows.Forms.Label label7; 623 | private System.Windows.Forms.Label label3; 624 | private System.Windows.Forms.Label label6; 625 | private System.Windows.Forms.Label label4; 626 | private System.Windows.Forms.Label label5; 627 | private System.Windows.Forms.Label label9; 628 | private System.Windows.Forms.Label label10; 629 | private System.Windows.Forms.Label label11; 630 | private System.Windows.Forms.RichTextBox TextDescription; 631 | private System.Windows.Forms.TabPage ViewReports; 632 | private System.Windows.Forms.TabPage AddCategory; 633 | private System.Windows.Forms.PictureBox pictureBox1; 634 | private System.Windows.Forms.PictureBox PBoxAddRecordButton; 635 | private System.Windows.Forms.DateTimePicker DTPVoucherDate; 636 | private System.Windows.Forms.ComboBox CmbVoucherType; 637 | private System.Windows.Forms.ComboBox CmbCategory; 638 | private System.Windows.Forms.BindingSource tblCategoriesBindingSource; 639 | private System.Windows.Forms.ComboBox CmbAccountID; 640 | private System.Windows.Forms.ComboBox CmbOppositeAccountID; 641 | private System.Windows.Forms.DataGridView dataGridView1; 642 | private System.Windows.Forms.DateTimePicker DTPEntryDate; 643 | private System.Windows.Forms.Label LblVM; 644 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; 645 | private System.Windows.Forms.TextBox TxtDescription; 646 | private System.Windows.Forms.Label label12; 647 | private System.Windows.Forms.Label label14; 648 | private System.Windows.Forms.PictureBox PBoxAddCategory; 649 | private System.Windows.Forms.TextBox TxtAccountName; 650 | private System.Windows.Forms.DataGridView DGVCategory; 651 | private System.Windows.Forms.BindingSource tblCategoriesBindingSource1; 652 | private System.Windows.Forms.BindingSource tblCategoriesBindingSource2; 653 | private System.Windows.Forms.Label LblMessage; 654 | private System.Windows.Forms.Timer TLabelMessage; 655 | } 656 | } --------------------------------------------------------------------------------