CompanyUpload/Frm_FileUpload.aspx.cs
(开头部分) 33KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web.UI;
using HDTY.CRM.Entities;
using Com_OA.CRM;
using System.IO;
using Bestcomy.Web.Controls.Upload;
using HDTY.PublicLib;
using System.Web;
using System.Web.UI.HtmlControls;
namespace Com_OA.CompanyUpload
{
public partial class Frm_FileUpload : System.Web.UI.Page
{
string F_ISORGIDUP = "", F_ISAPPLYBLANK = "", F_ISDESIGN = "", F_ISWTSFZ = "", F_ISPMT = "";
#region 页面加载
protected void Page_Load(object sender, EventArgs e)
{
//if (!IsPostBack)
InPage();
}
#endregion
#region 初始化页面
private void InPage()
{
string Companyid = T_HDUserClass.Func_GetUserCompanyId();
Lbl_Path.Text =Server.MapPath(".")+"/文件系统/" + T_HDUserClass.Func_GetUserName() + "/文件管理";
string FilePath = Lbl_Path.Text.Trim();
if (!Directory.Exists(FilePath))
{
Directory.CreateDirectory(FilePath);
}
AspnetUpload Upload = new AspnetUpload();
Upload.set_UploadFolder(FilePath);
Upload.RegisterModelessProgressBar(this.Btn_Upload);
FileUpload FileUpload = new FileUpload();
DataTable ds = new DataTable();
try
{
ds=FileUpload.Func_GetCompanyInfo(Companyid.Trim(), ref ds);
if (ds.Rows.Count>0)//判断该单位是否已有数据上传
{
#region 判断哪些文件是否已上传然后确定相应图片的显示
if (ds.Rows[0]["F_ISORGIDUP"].ToString().Trim() == "1")
{
Right_Pic.Visible = true;
F_ISORGIDUP = ds.Rows[0]["F_ISORGIDUP"].ToString().Trim();
}
else
{
Wrong_Pic.Visible = true;
F_ISORGIDUP = "0";
}
if (ds.Rows[0]["F_ISAPPLYBLANK"].ToString().Trim() == "1")
{
Right_Pic1.Visible = true;
F_ISAPPLYBLANK = ds.Rows[0]["F_ISAPPLYBLANK"].ToString().Trim();
}
后面还有 552 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
