コード例 #1
0
 public Form_Settings(DBinterface dbInterface)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
     localInterface = dbInterface;
 }
コード例 #2
0
 public Form_Suppliers(DBinterface db)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface = db;
 }
コード例 #3
0
        public Form_ApproveExpense(Form1 form, DBinterface dbInterface, List <string> id)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
            localInterface = dbInterface;
            mainForm       = form;
            this.ids       = id;
            DataTable dt = localInterface.Select("SELECT approved,date,amount FROM expenses WHERE id=" + ids[0]).Tables[0];

            approved = (bool)dt.Rows[0][0];
            comboBox1.SelectedIndex = 0;
            if (approved)
            {
                comboBox1.SelectedIndex = 1;
            }
            date = MyUtills.dateFromSQL(dt.Rows[0][1].ToString());
            dateTimePicker1.Value = date;
            if (this.ids.Count > 1)
            {
                checkBoxDate.Checked = false;
                textBox1.Visible     = false;
                label1.Visible       = false;
            }
            else
            {
                textBox1.Text = String.Format("{0:0,0.00}", double.Parse(dt.Rows[0][2].ToString()));
            }
        }
コード例 #4
0
 public Form_ShowNote(string noteId, string inputText, DBinterface inter, Form1 form)
 {
     InitializeComponent();
     text          = inputText;
     id            = noteId;
     interf        = inter;
     this.mainForm = form;
 }
コード例 #5
0
 public MyLastSearch(Form1 form, DBinterface dbInterface)
 {
     this.isSearch       = true;
     this.panel          = 0;
     this.idQuery        = "";
     this.mainForm       = form;
     this.localInterface = dbInterface;
 }
コード例 #6
0
 public Form_Expenses(Form1 form, DBinterface dbInterface)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface = dbInterface;
     mainForm       = form;
 }
コード例 #7
0
 public Form_SelectCustomer(DBinterface dbInterface, Form1 form)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface = dbInterface;
     formMain       = form;
 }
コード例 #8
0
 public Form_SelectProject(DBinterface dbInterface, Form_NewBill form)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface   = dbInterface;
     this.formNewBill = form;
     this.projectIds  = formNewBill.projectIds;
 }
コード例 #9
0
 public Form_NewProject(Form1 form, DBinterface dbInterface, string customerName, string customerId)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface = dbInterface;
     insertCustomer(customerName, customerId);
     mainForm = form;
 }
コード例 #10
0
 public Form_NewNote(DBinterface dbInterface, string billId, string billNumber, Form1 form)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface = dbInterface;
     idBill         = billId;
     numberBill     = billNumber;
     mainForm       = form;
 }
コード例 #11
0
 public Form_NewBill(Form1 form, DBinterface dbInterface)
 {
     InitializeComponent();
     projectIds         = new List <int>();
     this.StartPosition = FormStartPosition.CenterScreen;
     InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
     localInterface                   = dbInterface;
     mainForm                         = form;
     textBoxBillPart.Text             = "1";
     labelAmountNotes.Visible         = false;
     textBoxProjectAmountInfo.Visible = false;
 }
コード例 #12
0
        public Form_Summery(DBinterface dbInterface)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));

            dateTimePickerYear.Format       = DateTimePickerFormat.Custom;
            dateTimePickerYear.CustomFormat = "yyyy";

            localInterface = dbInterface;

            ShowResults(dateTimePickerYear.Value.Year.ToString());
        }
コード例 #13
0
        public Form_EditIncome(Form1 form, DBinterface dbInterface, string id, bool def)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));
            localInterface = dbInterface;
            mainForm       = form;
            this.id        = id;
            this.definite  = def;

            if (definite)
            {
                dateTimePicker1.Value = MyUtills.dateFromSQL(localInterface.Select("SELECT payDate FROM bills WHERE id=" + this.id).Tables[0].Rows[0][0].ToString());
            }
            else
            {
                dateTimePicker1.Value = MyUtills.dateFromSQL(localInterface.Select("SELECT toPayDate FROM bills WHERE id=" + this.id).Tables[0].Rows[0][0].ToString());
            }
        }
コード例 #14
0
        public Form_NewBill(Form1 form, DBinterface dbInterface, List <int> idProjects)
        {
            InitializeComponent();
            projectIds         = idProjects;
            this.StartPosition = FormStartPosition.CenterScreen;
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new System.Globalization.CultureInfo("he-IL"));
            localInterface = dbInterface;
            updateProject(projectIds);
            mainForm = form;

            if (true)//(amountInfo == String.Empty)
            {
                labelAmountNotes.Visible         = false;
                textBoxProjectAmountInfo.Visible = false;
            }
            else
            {
                labelAmountNotes.Visible         = true;
                textBoxProjectAmountInfo.Visible = true;
            }
        }