public Modul_Barang_Pemindahan(MainForm mf)
 {
     InitializeComponent();
     dbo = new DbObject();
     obj = new stockMovement();
     this.mf = mf;
 }
 public Modul_Akuntansi_TutupBuku(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
     dbo = new DbObject();
     obj = new JurnalUmum();
     subObj = new SubJurnalUmum();
 }
        public Modul_Pembelian_PurchaseOrder(MainForm mf)
        {
            InitializeComponent();
            allFunc = new AllFunc("Purchase Order",mf);
            dbo = new DbObject();

            this.mf = mf;
        }
 public Modul_Kas_Besar(MainForm mf)
 {
     InitializeComponent();
     allFunc = new AllFunc("Kas besar", mf);
     obj = new JurnalUmum();
     subObj = new SubJurnalUmum();
     kas = new Kas();
     dbo = new DbObject();
 }
 public Modul_Pembelian(MainForm mf)
 {
     InitializeComponent();
     allFunc = new AllFunc("Pembelian",mf);
     beli = new Beli();
     subBeli = new SubBeli();
     dbo = new DbObject();
     obj = new JurnalUmum();
     subObj = new SubJurnalUmum();
     kas = new Kas();
     utang = new Utang();
     //terimaBarng = new TerimaBarang();
     //subTerimaBarang = new SubTerimaBarang();
     //stock = new Stock();
     this.mf = mf;
 }
 public Modul_Barang_Penerimaan(MainForm mf)
 {
     InitializeComponent();
     allFunc = new AllFunc("Penerimaan Barang", mf);
     this.mf = mf;
 }
 public Modul_Barang_Data(MainForm mf)
 {
     InitializeComponent();
     obj = new Stock();
     this.mf = mf;
 }
 public Modul_Barang_StockOpname(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
     stockOpname = new StockOpname();
 }
 public Modul_Data_JasaDokter(MainForm mf)
 {
     InitializeComponent();
     obj = new JasaDokter();
     allFunc = new AllFunc("jasa dokter", mf);
 }
 public Modul_Akuntansi_SaldoAwal(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Data_Salesman(MainForm mf)
 {
     InitializeComponent();
     obj = new Salesman();
     this.mf = mf;
 }
Ejemplo n.º 12
0
        private void submitClick()
        {
            if ((txtUsername.Text.CompareTo("") != 0) && (txtPassword.Text.CompareTo("") != 0))
            {

                if (button1.Text.ToLower().CompareTo("login") == 0)
                {
                    SqlDataReader sdr = tbLogin.setLogin(txtUsername.Text, txtPassword.Text);
                    if (sdr.HasRows)
                    {
                        while (sdr.Read())
                        {
                            string levelAccess = (string)sdr["level"];
                            this.username = txtUsername.Text;
                            this.password = txtPassword.Text;
                            this.levelAccess = levelAccess;
                            this.logTime = DateTime.Now;
                            blank_field();
                            this.Visible = false;

                            MainForm integrated = new MainForm(this);
                            integrated.Show();

                            //Chooser chooser = new Chooser(this, levelAccess);
                            //chooser.Show();
                        }
                    }
                    else
                    {
                        MessageBox.Show("Username dan Password salah.");
                    }
                }
                else if (button1.Text.ToLower().CompareTo("submit") == 0)
                {
                    SqlDataReader sdr = tbLogin.cekLogin(txtUsername.Text, txtPassword.Text);
                    if (sdr.HasRows)
                    {
                        while (sdr.Read())
                        {
                            string levelAccess = (string)sdr["level"];
                            if (levelAccess.CompareTo("3") != 0)
                            {
                                dgv.Rows[dgv.CurrentCell.RowIndex].Cells[dgv.CurrentCell.ColumnIndex].ReadOnly = false;
                                dgv.CurrentCell = dgv.Rows[dgv.CurrentCell.RowIndex].Cells[dgv.CurrentCell.ColumnIndex];
                            }
                            else
                            {
                                MessageBox.Show("Level Akses Username tidak di otorisasi.");
                            }
                            blank_field();
                            this.Visible = false;
                        }
                    }
                    else
                    {
                        MessageBox.Show("Username dan Password salah.");
                    }
                }

            }
            else
            {
                MessageBox.Show("Silakan mengisi Username dan Password");
            }
        }
 public Modul_Akuntansi_KodePerkiraan(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
Ejemplo n.º 14
0
 public AllFunc(String prefix,MainForm mf)
 {
     Prefix = prefix;
     Mf = mf;
 }
 public Modul_Data_Gudang(MainForm mf)
 {
     InitializeComponent();
     obj = new Gudang();
     this.mf = mf;
 }
 public Modul_Data_Karyawan(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Data_Group(MainForm mf)
 {
     InitializeComponent();
     obj = new GroupCustomer();
     this.mf = mf;
 }
 public Modul_Data_Dokter(MainForm mf)
 {
     InitializeComponent();
     dokter = new Dokter();
     this.mf = mf;
 }
 public Modul_Data_Bank(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Pembelian_DaftarHutang(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Barang_DataKelompok(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Akuntansi_JurnalUmum(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Penjualan_Retur(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
Ejemplo n.º 24
0
 private void integratedBtn_Click(object sender, EventArgs e)
 {
     MainForm integrated = new MainForm(this.login);
     integrated.Show();
     close();
 }
 public Modul_Penjualan_DaftarPiutang(MainForm mf)
 {
     InitializeComponent();
     this.mf = mf;
 }
 public Modul_Data_Supplier(MainForm mf)
 {
     InitializeComponent();
     obj = new Supplier();
     this.mf = mf;
 }