Exemplo n.º 1
0
        private void myIconButton2_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            frmBranch frm = new frmBranch(windowsList);

            windowsList.ShowForm(frm);
        }
Exemplo n.º 2
0
        private void btnPwd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new SysForm.frmUpdatePwd();

            frm.ShowDialog();
        }
Exemplo n.º 3
0
        private void myIconButton4_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new PriceForm.frmSupPrice();

            windowsList.ShowForm(frm);
        }
Exemplo n.º 4
0
        private void tsbSave_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "04"))
            {
                return;
            }
            IOrder ins = this;

            ins.Save();
        }
Exemplo n.º 5
0
        private void myIconButton7_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new VoucherForm.OrderMerge("现金银行转账单", new VoucherForm.frmCashOrderList(), new VoucherForm.frmCashOrder());

            windowsList.ShowForm(frm);
        }
Exemplo n.º 6
0
        private void btnFunAuth_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new SysForm.frmOperGrant();

            windowsList.ShowForm(frm);
        }
Exemplo n.º 7
0
        private void tsbScan_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            frmScanCheckSheet frm = new frmScanCheckSheet(this);

            frm.ShowDialog();
        }
Exemplo n.º 8
0
        private void btnSiteList_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new SysForm.frmRegisterList();

            frm.ShowDialog();
        }
Exemplo n.º 9
0
        private void tsbCheck_Click(object sender, EventArgs e)
        {
            try
            {
                if (!MyLove.PermissionsBalidation(this.Text, "05"))
                {
                    return;
                }
                if (string.IsNullOrEmpty(this.txtSheet_no.Text))
                {
                    return;
                }
                IBLL.ICheckBLL bll = new BLL.CheckBLL();

                Dictionary <string, object> dic = this.Tag as Dictionary <string, object>;
                if (!Conv.ControlsCom(this, dic))
                {
                    List <Model.ic_t_check_finish> lis = new List <Model.ic_t_check_finish>();

                    foreach (DataRow r in this.editGrid1.DataSource.Rows)
                    {
                        ic_t_check_finish item = new ic_t_check_finish()
                        {
                            sheet_no    = this.txtSheet_no.Text,
                            item_no     = r["item_no"].ToString(),
                            change_flag = r["change_flag"].ToString(),
                            memo        = r["memo"].ToString(),
                            update_time = DateTime.Now
                        };
                        lis.Add(item);
                    }
                    if (lis.Count > 0)
                    {
                        bll.UpdateCheckFinish(lis);
                    }
                }

                bll.CheckPCSheet(new ic_t_check_init()
                {
                    sheet_no    = this.txtSheet_no.Text,
                    memo        = this.txtMemo.Text,
                    approve_man = this.txtApproveMan.Text.Split('/')[0],
                    end_date    = DateTime.Now,
                });

                IOrder order = this;
                order.ShowOrder(this.txtSheet_no.Text);

                MsgForm.ShowFrom("审核成功");
            }
            catch (Exception ex)
            {
                MsgForm.ShowFrom(ex);
            }
        }
Exemplo n.º 10
0
        private void myIconButton7_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            frmSupcust frm = new frmSupcust();

            frm.runType = 1;
            windowsList.ShowForm(frm);
        }
Exemplo n.º 11
0
        private void label1_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new ReportForm.frmReport();

            frm.GetSaleSum();
            windowsList.ShowForm(frm);
        }
Exemplo n.º 12
0
        private void tsbCreate_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            var frm = new frmBankUpdate();

            frm.ShowDialog();
            LoadBank();
        }
Exemplo n.º 13
0
        private void myIconButton5_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(oper_type, "18"))
            {
                return;
            }
            var frm = new ReportForm.frmReport();

            frm.GetCheckPlan();
            windowsList.ShowForm(frm);
        }
Exemplo n.º 14
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            var frm = new frmOperUpdate();

            frm.ShowDialog();

            tv_AfterSelect(null, null);
        }
Exemplo n.º 15
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }

            var frm = new frmBranchUpdate();

            frm.code = this.tv.SelectedNode == null ? "" : this.tv.SelectedNode.Tag.ToString();
            frm.ShowDialog();
            LoadTv();
        }
Exemplo n.º 16
0
        private void tsbCreate_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            var frm = new frmIncomeEdit("");

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                init_data();
            }
        }
Exemplo n.º 17
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            var frm = new frmItemUpdate();

            if (this.tv.SelectedNode != null && this.tv.SelectedNode.Tag != null)
            {
                frm.item_clsno = this.tv.SelectedNode.Tag.ToString();
            }
            frm.ShowDialog();
            LoadItem();
        }
Exemplo n.º 18
0
 private void btnSaveNoClose_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "14"))
         {
             return;
         }
         Save();
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }
Exemplo n.º 19
0
        private void tsbCheck_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "05"))
            {
                return;
            }
            if (string.IsNullOrEmpty(this.txtsheet_no.Text))
            {
                return;
            }

            IBLL.ICheckBLL bll = new BLL.CheckBLL();
            bll.CheckPDSheet(this.txtsheet_no.Text);

            MsgForm.ShowFrom("审核成功");
        }
Exemplo n.º 20
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var             region = this.tvRegion.SelectedNode.Tag as bi_t_region_info;
            frmRegionUpdate frm    = new frmRegionUpdate();
            var             item   = frm.Add(region.region_no.Equals("所有") ? "" : region.region_no, region.region_name);

            LoadItemCls();
        }
Exemplo n.º 21
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            if (this.tvItemCls.SelectedNode == null)
            {
                return;
            }
            var item_cls         = this.tvItemCls.SelectedNode.Tag as bi_t_item_cls;
            frmItemClsUpdate frm = new frmItemClsUpdate();

            frm.Add(item_cls.item_clsno.Equals("所有") ? "" : item_cls.item_clsno, item_cls.item_clsname);

            LoadItemCls();
        }
Exemplo n.º 22
0
        private void LoadPeo()
        {
            if (!MyLove.PermissionsBalidation(this.Text, "18"))
            {
                return;
            }
            page.PageSize = this.dgvPeo.MaxDisplayRowCount();
            string selectedNode = this.tv.SelectedNode == null ? "" : this.tv.SelectedNode.Tag.ToString();
            string Keyword      = this.txtKeyword.Text.Trim();
            int    ShowStopPeo  = this.cbShowStopPeo.Checked ? 1 : 0;
            Thread th           = new Thread(() =>
            {
                Helper.GlobalData.windows.ShowLoad(this);
                try
                {
                    IBLL.IPeople bll = new BLL.PeopleBLL();
                    page             = bll.GetDataTable(
                        selectedNode,
                        Keyword,
                        ShowStopPeo,
                        page
                        );
                    this.Invoke((MethodInvoker) delegate
                    {
                        Cursor.Current = Cursors.WaitCursor;

                        Conv.AddColorTable(page.tb, "oper_status");

                        this.dgvPeo.DataSource = page.tb;

                        this.lblMaxIndex.Text = page.PageMax.ToString();
                        this.lblIndex.Text    = page.PageIndex.ToString();
                        Cursor.Current        = Cursors.Default;
                    });
                }
                catch (Exception ex)
                {
                    LogHelper.writeLog("LoadPeo", "获取员工出错!");
                    MsgForm.ShowFrom(ex);
                }
                Helper.GlobalData.windows.CloseLoad(this);
            });

            th.Start();
        }
Exemplo n.º 23
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }

            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var           dept = this.tvRegion.SelectedNode.Tag as bi_t_dept_info;
            frmDeptUpdate frm  = new frmDeptUpdate();

            frm.Add(dept.dept_no.Equals("所有") ? "" : dept.dept_no, dept.dept_name);

            LoadItemCls();
        }
Exemplo n.º 24
0
        private void tsbCheck_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "05"))
            {
                return;
            }
            if (dataGrid1.CurrentRow() == null)
            {
                return;
            }

            string sheet_no = dataGrid1.CurrentRow()["sheet_no"].ToString();

            IBLL.ICheckBLL bll = new BLL.CheckBLL();
            bll.CheckPDSheet(sheet_no);

            btnSelect_Click(null, null);
        }
Exemplo n.º 25
0
        private void tsmiPrintStyle_Click(object sender, EventArgs e)
        {
            try
            {
                if (!MyLove.PermissionsBalidation(this.Text, "07"))
                {
                    return;
                }
                GetPrintTb();
                PrintForm.frmPrintManager frm = new PrintForm.frmPrintManager();

                frm.PrintStyle(method_id);
            }
            catch (Exception exception)
            {
                MsgForm.ShowFrom(exception);
            }
        }
Exemplo n.º 26
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }
            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var item = this.tvRegion.SelectedNode.Tag as bi_t_region_info;
            var frm  = new frmRegionUpdate();

            item = frm.Change(item);

            this.tvRegion.SelectedNode.Text = item.region_name;
            this.tvRegion.SelectedNode.Tag  = item;
            this.tvRegion.Refresh();
        }
Exemplo n.º 27
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }
            DataRow dr = this.dgvBank.CurrentRow();

            if (dr == null)
            {
                return;
            }
            var bank = DB.ReflectionHelper.DataRowToModel <bi_t_bank_info>(dr);
            var frm  = new frmBankUpdate();

            frm.bank = bank;
            frm.ShowDialog();
            LoadBank();
        }
Exemplo n.º 28
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }
            DataRow dr = this.dgvPay.CurrentRow();

            if (dr == null)
            {
                return;
            }
            var item = DB.ReflectionHelper.DataRowToModel <bi_t_payment_info>(dr);
            var frm  = new frmPaymentUpdate();

            frm.payment = item;
            frm.ShowDialog();
            LoadPay();
        }
Exemplo n.º 29
0
 private void tsbAddType_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "01"))
         {
             return;
         }
         var frm = new frmChangeOperType();
         if (frm.ChangeOperType(null) == DialogResult.Yes)
         {
             LoadTv();
         }
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }
Exemplo n.º 30
0
 private void tsbChangeType_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "14"))
         {
             return;
         }
         var frm = new frmChangeOperType();
         if (frm.ChangeOperType((sa_t_oper_type)this.tv.SelectedNode.Tag) == DialogResult.Yes)
         {
             LoadTv();
         }
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }