bas/xzgl/Wdyjx_Add.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.WebControls;
using haoke365;
namespace hkpro.bas.xzgl
{
public partial class Wdyjx_Add : System.Web.UI.Page
{
BindData bd = new BindData();
public void Page_Load(object Sender, EventArgs E)
{
mydb hkdb = new mydb();
hkdb.VeriSess("4");
if (!IsPostBack)
{
lblAttachSize.Text = Convert.ToString(SqlHelper.ExecuteScalar("SELECT P_STRING FROM hk_CSDA WHERE PARAMT='fj_size'"));
//dp绑定
string str1 = " where zt='正常'";
if (this.Session["systype"].ToString() == "G")
{
str1 = str1 + " and (lx='供应商' or lx='公共')";
}
else
{
str1 = str1 + " and (lx='企业' or lx='公共')";
}
string sql = "SELECT ID,MC FROM HK_YJX" + str1;
bd.Bind_DropDownList(yjx, sql, "ID", "MC", "", "");
}
}
//保存
public void Save_Click(object sender, EventArgs e)
{
string FileName = "";
string FileVisualPathStr = "";
string UserName = this.Session["userid"].ToString();
if (!string.IsNullOrEmpty(fj.PostedFile.FileName.Trim()))
{
try
{
if (fj.PostedFile.ContentLength < 1024 * int.Parse(lblAttachSize.Text))
{
FileName = System.IO.Path.GetFileName(fj.PostedFile.FileName);
if (!System.IO.Directory.Exists((Server.MapPath("..\\..\\") + "Attach\\yjx\\" + UserName)))
{
System.IO.Directory.CreateDirectory((Server.MapPath("..\\..\\") + "Attach\\yjx\\" + UserName));
}
Random TempNameInt = new Random();
string NewDocDirName = TempNameInt.Next(100000000).ToString();
if (!System.IO.Directory.Exists((Server.MapPath("..\\..\\") + "Attach\\yjx\\" + UserName + "\\" + NewDocDirName)))
{
System.IO.Directory.CreateDirectory((Server.MapPath("..\\..\\") + "Attach\\yjx\\" + UserName + "\\" + NewDocDirName));
}
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
