Backup/N0003收支管理系统程序/InOut_Edit.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class InOut_Edit : WebPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.ValidateUser();
        if (!this.IsPostBack)
        {
            this.hidInOutID.Value = Request.QueryString["InOutID"] + "";
            this.txtInOutDate.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            this.initList();
            this.initForm();
        }
    }

    #region 事件产生的函数
    protected void btnOK_Click(object sender, EventArgs e)
    {
        InOutMgr mgr = new InOutMgr();
        InOut inOut = new InOut();
        TradeTypeMgr ttMgr = new TradeTypeMgr();

        if (this.hidInOutID.Value != "")
        {
            inOut = mgr.GetInOut(this.hidInOutID.Value);
        }

        inOut.InOutName = this.txtInOutName.Text.Trim();
        inOut.MoneyNumber = double.Parse(this.txtMoneyNumber.Text.Trim());
        inOut.TradeType.TradeTypeID = int.Parse(this.lstTradeTypeID.SelectedValue);
        switch (ttMgr.GetTradeType(this.lstTradeTypeID.SelectedValue).InOut)
        {
            case "+":
                inOut.InBank.BankID = this.lstBankID.SelectedValue;
                break;
            case "-":
                inOut.OutBank.BankID = this.lstBankID.SelectedValue;
                break;
        }
        inOut.InOutDate = DateTime.Parse(this.txtInOutDate.Text);
        inOut.Memo = this.txtMemo.Text;
        inOut.Admin.AdminID = this.eUserID;

        mgr.UpdateInOut(inOut);
        this.SendMessage("信息编辑成功");
        if (this.hidInOutID.Value == "")
        {
            this.ClearTextData(this);
        }
    }
后面还有 65 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。