Ejemplo n.º 1
0
        private int InsertIncome()
        {
            FinanceManagerSys.Model.Income_Model model = new FinanceSys.FinanceManagerSys.Model.Income_Model();
            FinanceManagerSys.BLL.Income_BLL     bll   = new FinanceSys.FinanceManagerSys.BLL.Income_BLL();

            model.B            = this.txtB.Text.Trim();
            model.BreakMoney   = 0;
            model.ContractNo   = this.txtcontractno.Text.Trim();
            model.Deductap     = 0;
            model.DemoCost     = decimal.Parse(this.txtTic.Text.Trim());
            model.DemoName     = this.txtDemoname.Text.Trim();
            model.EmpName      = cbxEmp.Text;
            model.Incometime   = DateTime.Parse(dtptime.Text);
            model.InvoiceMoney = 0;
            model.IsBank       = string.Empty;
            model.Money        = decimal.Parse(this.txtMoney.Text.Trim());
            model.OperPerson   = this.txtOperperson.Text.Trim();
            model.Party        = this.txtParty.Text.Trim();
            model.Remark       = this.txtRemark.Text.Trim();
            model.Type         = cbxType.Text;

            if (bll.Add(model) > 0)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
Ejemplo n.º 2
0
        private int InsertIncome()
        {
            FinanceManagerSys.Model.Income_Model model = new FinanceSys.FinanceManagerSys.Model.Income_Model();
            FinanceManagerSys.BLL.Income_BLL     bll   = new FinanceSys.FinanceManagerSys.BLL.Income_BLL();

            model.B            = "非合同收入";
            model.BreakMoney   = 0;
            model.ContractNo   = "非合同收入";
            model.Deductap     = 0;
            model.DemoCost     = 0;
            model.DemoName     = this.txtdemoname.Text.Trim();
            model.EmpName      = "无";
            model.Incometime   = DateTime.Parse(dtpMonth.Text);
            model.InvoiceMoney = 0;
            model.IsBank       = "非合同收入";
            model.Money        = decimal.Parse(this.txtMoney.Text.Trim());
            model.OperPerson   = this.txtOperPerson.Text.Trim();
            model.Party        = this.txtltdname.Text.Trim();
            model.Remark       = this.txtRemark.Text.Trim();
            model.Type         = this.txtType.Text.Trim();

            return(bll.Add(model));
        }
 /// <summary>
 /// 修改收入表中的发票金额
 /// </summary>
 /// <param name="money"></param>
 private void UpdateIncome(string contractno, decimal money)
 {
     FinanceManagerSys.BLL.Income_BLL incomebll = new FinanceSys.FinanceManagerSys.BLL.Income_BLL();
     incomebll.Update(contractno, money);
 }