Views/Forms/HR/OnDutyFormList.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using MicroAuthHelper;
using MicroDBHelper;
using MicroDTHelper;
using MicroFormHelper;
using MicroPublicHelper;
using MicroWorkFlowHelper;
public partial class Views_Forms_HR_OnDutyFormList : System.Web.UI.Page
{
public string HtmlCode = "",
JsXmSelectCode = "",
divCol2HtmlCode = "";
protected void Page_Load(object sender, EventArgs e)
{
//动作Action 可选值Add、Modify、View
string Action = MicroPublic.GetFriendlyUrlParm(0);
txtAction.Value = Action;
if (!string.IsNullOrEmpty(Action))
Action = Action.ToLower();
string ShortTableName = MicroPublic.GetFriendlyUrlParm(1);
txtShortTableName.Value = ShortTableName;
string ModuleID = MicroPublic.GetFriendlyUrlParm(2);
txtMID.Value = ModuleID;
string FormID = MicroPublic.GetFriendlyUrlParm(3);
txtFormID.Value = FormID;
var getFormAttr = MicroForm.GetFormAttr(ShortTableName, FormID);
spanTitle.InnerHtml = getFormAttr.FormName + getFormAttr.Description; //表单名称和描述
spanWorkFlow.Visible = MicroAuth.CheckPermit(ModuleID, "3"); //是否显示修改流程
string Note = getFormAttr.Note;
if (!string.IsNullOrEmpty(Note))
{
divNote.Visible = true;
spanNote.InnerHtml = Note;
}
string FormsID = MicroPublic.GetFriendlyUrlParm(4);
if (!string.IsNullOrEmpty(FormsID))
txtFormsID.Value = FormsID;
//得到主键名称,主要用于点击LayuiDataTabel行时根据主键名称返回主键值
var GetTableAttr = MicroDataTable.GetTableAttr(MicroPublic.GetTableName(ShortTableName));
txtPrimaryKeyName.Value = "data." + GetTableAttr.PrimaryKeyName;
if (!string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(FormsID))
{
后面还有 83 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
