k3CRM/BaseDataInfo/InitializeDataAdd.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
using System.Globalization;
using Common;
using Model;
using Ajax;

namespace k3CRM.BaseDataInfo
{
    public partial class InitializeDataAdd : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ValidatePermissionPage(31);
            //可以在页面加载时设置页面的缓存为“SetNoStore()”,即无缓存 
            Response.Cache.SetNoStore();
            if (!Page.IsPostBack)
            {
                Ajax.Utility.RegisterTypeForAjax(typeof(InitializeDataAdd));
                //第一次加载
                t_user user = (t_user)Session["user"];
                this.txtFBillerID.Value = user.FUserID.ToString();
                this.txtBiller.Value = user.FName;
                this.txtFdate.Value = DateTime.Now.ToString("yyyy-MM-dd");

                //判断是查看还是新增录入
                string strType = RequestData.GetString("type");
                if (strType=="view")
                {
                    this.btnSubmit.Visible = false;
                    string finterid = RequestData.GetString("FInterID");
                    DAL.dalInitializeData dal = new DAL.dalInitializeData();
                    DataTable mydt = dal.getInitializeDataList(" and FInterID='"+finterid+"'  ");
                    this.txtFName.Value = mydt.Rows[0]["FFContactName"].ToString();
                    this.txtFEmp.Value = mydt.Rows[0]["FEmp"].ToString();
                    this.txtFNote.Value = mydt.Rows[0]["FNote"].ToString();
                    this.txtBiller.Value = mydt.Rows[0]["FBiller"].ToString();
                    this.txtFdate.Value = mydt.Rows[0]["FDate"].ToString();
                    this.txtFBelongDepartment.Value = mydt.Rows[0]["FBelongDepartment"].ToString();
                    this.txtFEnterpriseNature.Value = mydt.Rows[0]["FEnterpriseNature"].ToString();
                    this.txtFAmount.Value = mydt.Rows[0]["FAmount"].ToString(); ;
                }
            }
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
后面还有 31 行代码,解锁后查看完整代码

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

AI 解读

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

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