Ejemplo n.º 1
0
    protected void agreeButton_Click(object sender, EventArgs e)
    {
        CashFlowInfo ci = (CashFlowInfo)Session["CashierDetail"];

        ci.HappenDate = DateTime.Today;//按日期指的是学校通过记账之后日期
        ci.VoucherID  = voucherID.Value;
        ci.AccountID  = accountIDList.SelectedValue;
        CashFlowInfo.SetCashFlow(ci, ci.RecordID);

        Response.Redirect("~/Account/ApplyListPage.aspx");
    }
Ejemplo n.º 2
0
    protected void confirm_Click(object sender, EventArgs e)
    {
        PayAssign pi = new PayAssign();

        pi.School      = schoolList.SelectedValue;
        pi.ProjectName = projectNameList.SelectedValue;
        pi.StaffName   = staffName.Text;
        pi.Payee       = payee.Value;
        pi.Payed       = Convert.ToDouble(payed.Text);
        pi.Income      = Convert.ToDouble(income.Text);
        pi.Assigned    = Convert.ToDouble(assigned.Text);
        pi.Instrument  = instrument.Text;
        pi.Hardware    = hardware.Text;
        pi.FundingID   = fundingID.Value;

        pi.ToUniversity       = Convert.ToDouble(toUniversity.Text);
        pi.ToUniversityDetail = toUniversityDetail.Value;
        pi.ToSchool           = Convert.ToDouble(toSchool.Text);
        pi.ToSchoolDetail     = toSchoolDetail.Value;
        pi.Fundings           = Convert.ToDouble(fundings.Text);
        pi.FundingsDetail     = fundingsDetail.Value;
        pi.Welfare            = Convert.ToDouble(welfare.Text);
        pi.WelfareDetail      = welfareDetail.Value;
        pi.Note           = note.Text;
        pi.ApproveProcess = "";

        PayAssign.SetPayAssignOutSchool(-1, pi);


        CashFlowInfo tran     = new CashFlowInfo();
        int          recordID = Convert.ToInt32(Request["RecordID"]);

        tran.RecordID       = recordID;
        tran.HappenDate     = Convert.ToDateTime(DateTime.Today);
        tran.ProjectCode    = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectCode;
        tran.ProjectAccount = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectAccount;
        tran.CashType       = "到款分配-校外";
        tran.Income         = pi.Income;
        tran.Expense        = 0;
        tran.Department     = "";
        tran.Summary        = "";
        tran.Remark         = "";
        tran.Handler        = pi.StaffName;
        tran.AccountID      = "应收账款";
        tran.VoucherID      = "暂无";
        CashFlowInfo.SetCashFlow(tran, tran.RecordID);


        Response.Redirect("~/Account/ApplyListPage.aspx");
    }
Ejemplo n.º 3
0
    protected void confirm_Click(object sender, EventArgs e)
    {
        PayAssign pi = new PayAssign();

        pi.School      = schoolList.SelectedValue;
        pi.ProjectName = projectNameList.SelectedValue;
        pi.StaffName   = staffName.Text;
        pi.Payee       = payee.Value;
        pi.Payed       = Convert.ToDouble(payed.Text);
        pi.Income      = Convert.ToDouble(income.Text);
        pi.Assigned    = Convert.ToDouble(assigned.Text);
        pi.Instrument  = instrument.Text;
        pi.Hardware    = hardware.Text;
        pi.FundingID   = fundingID.Value;

        pi.Management    = Convert.ToDouble(management.Text);
        pi.Labor         = Convert.ToDouble(labor.Text);
        pi.Consult       = Convert.ToDouble(consult.Text);
        pi.BusinessTax   = Convert.ToDouble(businessTax.Text);
        pi.AddedValueTax = Convert.ToDouble(addedValueTax.Text);

        pi.Note           = note.Text;
        pi.ApproveProcess = "";

        PayAssign.SetPayAssignInSchool(-1, pi);


        CashFlowInfo tran     = new CashFlowInfo();
        int          recordID = Convert.ToInt32(Request["RecordID"]);

        tran.RecordID       = recordID;
        tran.HappenDate     = Convert.ToDateTime(DateTime.Today);
        tran.ProjectCode    = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectCode;
        tran.ProjectAccount = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectAccount;
        tran.CashType       = "到款分配-校内";
        tran.Income         = pi.Income;
        tran.Expense        = 0;
        tran.Department     = "";
        tran.Summary        = "";
        tran.Remark         = "";
        tran.Handler        = pi.StaffName;
        tran.AccountID      = "应收账款";
        tran.VoucherID      = "暂无";
        CashFlowInfo.SetCashFlow(tran, tran.RecordID);


        Response.Redirect("~/Account/ApplyListPage.aspx");
    }