本文整理汇总了C#中Org_StaffBLL类的典型用法代码示例。如果您正苦于以下问题:C# Org_StaffBLL类的具体用法?C# Org_StaffBLL怎么用?C# Org_StaffBLL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Org_StaffBLL类属于命名空间,在下文中一共展示了Org_StaffBLL类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: BindDropdown
private void BindDropdown()
{
#region 绑定用户可管辖的片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
ddl_AccountMonth.DataSource = AC_AccountMonthBLL.GetModelList("");
ddl_AccountMonth.DataBind();
ddl_AccountMonth.SelectedValue = (AC_AccountMonthBLL.GetCurrentMonth() - 1).ToString();
rbl_ApproveFlag.DataSource = DictionaryBLL.GetDicCollections("PUB_ApproveFlag");
rbl_ApproveFlag.DataBind();
rbl_ApproveFlag.Items.Insert(0, new ListItem("所有", "0"));
rbl_ApproveFlag.SelectedValue = "0";
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:27,代码来源:StaffSalarySetGenerateFlag.aspx.cs
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
#region 获取参数
ViewState["OrganizeCity"] = Request.QueryString["OrganizeCity"] == null ? 0 : int.Parse(Request.QueryString["OrganizeCity"]);
ViewState["AccountMonth"] = Request.QueryString["AccountMonth"] == null ? 0 : int.Parse(Request.QueryString["AccountMonth"]);
ViewState["Staff"] = Request.QueryString["Staff"] == null ? 0 : int.Parse(Request.QueryString["Staff"]);
#endregion
BindDropDown();
if ((int)ViewState["OrganizeCity"] > 0) tr_OrganizeCity.SelectValue = ViewState["OrganizeCity"].ToString();
if ((int)ViewState["AccountMonth"] > 0) ddl_AccountMonth.SelectedValue = ViewState["AccountMonth"].ToString();
if ((int)ViewState["Staff"] > 0)
{
Org_StaffBLL staff = new Org_StaffBLL((int)ViewState["Staff"]);
if (staff.Model != null)
{
select_Staff.SelectValue = staff.Model.ID.ToString();
select_Staff.SelectText = staff.Model.RealName;
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
}
if (select_Staff.SelectValue != "") BindGrid();
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:28,代码来源:TC_TrackCardListByStaff.aspx.cs
示例3: BindDropDown
private void BindDropDown()
{
#region 绑定用户可管辖的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
int forwarddays = ConfigHelper.GetConfigInt("FeeApplyForwardDays");
ddl_Month.DataSource = AC_AccountMonthBLL.GetModelList("EndDate>=GETDATE() AND BeginDate<='" + DateTime.Today.AddDays(forwarddays).ToString("yyyy-MM-dd") +
"' AND Year>=" + (DateTime.Today.Year - 1).ToString());
ddl_Month.DataBind();
ddl_Month.SelectedValue = AC_AccountMonthBLL.GetMonthByDate(DateTime.Now.AddDays(forwarddays)).ToString();
rbl_IsNKA.SelectedValue = Request.QueryString["ISNKA"] != null ? Request.QueryString["ISNKA"].ToString() : "2";
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:26,代码来源:FeeApply_CLContract.aspx.cs
示例4: BindDropDown
private void BindDropDown()
{
IList<EWF_Flow_App> apps = EWF_Flow_AppBLL.GetModelList(" EnableFlag='Y' ");
ddl_App.DataSource = apps;
ddl_App.DataBind();
ddl_App.Items.Insert(0, new ListItem("请选择...", "0"));
#region 绑定当前操作员所能查看的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
ddl_FinishStatus.DataSource = DictionaryBLL.GetDicCollections("EWF_Flow_FinishStatus");
ddl_FinishStatus.DataBind();
ddl_FinishStatus.Items.Insert(0, new ListItem("全部", "0"));
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:27,代码来源:TaskList.aspx.cs
示例5: BindDropDown
private void BindDropDown()
{
#region 绑定用户可管辖的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
if (Request.QueryString["OrganizeCity"] != null)
{
tr_OrganizeCity.SelectValue = Request.QueryString["OrganizeCity"].ToString();
}
#endregion
ddl_Month.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate<='" + DateTime.Today.ToString("yyyy-MM-dd") +
"' AND Year>=" + (DateTime.Today.Year - 1).ToString());
ddl_Month.DataBind();
ddl_Month.SelectedValue = (AC_AccountMonthBLL.GetMonthByDate(DateTime.Now) - 1).ToString();
if (Request.QueryString["AccountMonth"] != null)
{
ddl_Month.SelectedValue = Request.QueryString["AccountMonth"].ToString();
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:31,代码来源:PM_GetAnalysisOverview.aspx.cs
示例6: bt_Approve_Click
protected void bt_Approve_Click(object sender, EventArgs e)
{
if ((int)ViewState["ForcastID"] != 0)
{
string wftitle = "经销商销量预估流程申请ID:";
Save();
if ((int)ViewState["ClientType"] == 3)
{
wftitle = "零售商销量预估流程申请ID:";
}
Org_StaffBLL bll = new Org_StaffBLL((int)Session["UserID"]);
NameValueCollection dataobjects = new NameValueCollection();
dataobjects.Add("ID", ViewState["ForcastID"].ToString());
dataobjects.Add("OrganizeCity", bll.Model.OrganizeCity.ToString());
dataobjects.Add("ApplyFee", SVM_ClassifyForcastBLL.GetForcastSumPrice((int)ViewState["ForcastID"]).ToString());
int TaskID = EWF_TaskBLL.NewTask("SVM_ClassifyForcast_Approve", (int)Session["UserID"], wftitle + ViewState["ForcastID"].ToString(), "~/SubModule/SVM/ClassifyForcastDetail.aspx?ClientID=" + ViewState["ClientID"].ToString() + "&ForcastID=" + ViewState["ForcastID"].ToString(), dataobjects);
if (TaskID > 0)
{
SVM_ClassifyForcastBLL.Submit((int)ViewState["ForcastID"], TaskID);
new EWF_TaskBLL(TaskID).Start(); //直接启动流程
}
bt_Approve.Enabled = false;
Response.Redirect("~/SubModule/SVM/ClassifyForcast.aspx");
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:26,代码来源:ClassifyForcastDetail.aspx.cs
示例7: BindDropDown
private void BindDropDown()
{
#region 绑定用户可管辖的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
ddl_Month.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate<='" + DateTime.Today.ToString("yyyy-MM-dd") +
"' AND Year>=" + (DateTime.Today.Year - 1).ToString());
ddl_Month.DataBind();
ddl_Month.SelectedValue = AC_AccountMonthBLL.GetMonthByDate(DateTime.Now.AddDays(-10)).ToString();
ddl_ActiveFlag.DataSource = DictionaryBLL.GetDicCollections("CM_ActiveFlag");
ddl_ActiveFlag.DataBind();
ddl_ActiveFlag.Items.Insert(0, new ListItem("所有", "0"));
ddl_ActiveFlag.SelectedValue = "1";
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:29,代码来源:EndDateInventorySummary.aspx.cs
示例8: bt_Refresh_Click
protected void bt_Refresh_Click(object sender, EventArgs e)
{
ReportViewer1.ServerReport.ReportServerCredentials = new MCSReportServerCredentials();
ReportViewer1.ServerReport.ReportPath = ViewState["ReportPath"].ToString();
ReportViewer1.ServerReport.ReportServerUrl = new Uri(ViewState["ReportServerUrl"].ToString());
if (ReportViewer1.ServerReport.GetParameters().Count == 3)
{
int staff = 0;
int position = new Org_StaffBLL((int)Session["UserID"]).Model.Position;
string remark = new Org_PositionBLL(position).Model.Remark;
if (remark != null && remark.Contains("OnlyViewSelfReport"))
{
staff = (int)Session["UserID"];
}
ReportParameter[] _parms = {
new ReportParameter("BeginDate",tbx_begin.Text),
new ReportParameter("EndDate", tbx_end.Text),
new ReportParameter("Staff",staff.ToString())
};
ReportViewer1.ServerReport.SetParameters(_parms);
}
else
{
ReportParameter[] _parms = {
new ReportParameter("BeginDate",tbx_begin.Text),
new ReportParameter("EndDate", tbx_end.Text)
};
ReportViewer1.ServerReport.SetParameters(_parms);
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:31,代码来源:PubReportViewer06.aspx.cs
示例9: Bind
private void Bind()
{
int StaffID = int.Parse(ViewState["StaffID"].ToString());
if (StaffID <= 0)
StaffID = int.Parse(Session["UserID"].ToString());
Org_StaffBLL _staff = new Org_StaffBLL(StaffID);
switch (ViewState["Type"].ToString())
{
case "4":
p_headr.InnerText = "已录进货的零售店数(成品)-未完成";
gv_Detail.DataSource = _staff.GetFillProcessDetail(4);
break;
case "5":
p_headr.InnerText = "已录销量的零售店数(成品)-未完成";
gv_Detail.DataSource = _staff.GetFillProcessDetail(5);
break;
case "2":
p_headr.InnerText = "返利费用申请门店数-未完成";
gv_Detail.DataSource = _staff.GetFillProcessDetail(2);
break;
case "3":
p_headr.InnerText = "导购工资申请导购数-未完成";
gv_Detail.DataSource = _staff.GetFillProcessDetail(3);
break;
case "1":
default:
p_headr.InnerText = "陈列费用申请门店数-未完成";
gv_Detail.DataSource = _staff.GetFillProcessDetail(1);
break;
}
gv_Detail.DataBind();
gv_Detail.BindGrid();
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:33,代码来源:PopShowProcessDetail.aspx.cs
示例10: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
tbx_begin.Text = DateTime.Now.AddMonths(-3).ToShortDateString();
tbx_end.Text = DateTime.Now.ToShortDateString();
#region 绑定用户可管辖的片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
tr_Position.DataSource = Org_PositionBLL.GetAllPostion();
BindData();
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:27,代码来源:ZhaoPinApplyList.aspx.cs
示例11: BindDropDown
private void BindDropDown()
{
#region 绑定用户可管辖的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
ddl_Month.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate<GETDATE() AND Year>=" + (DateTime.Today.Year - 1).ToString());
ddl_Month.DataBind();
ddl_Month.SelectedValue = AC_AccountMonthBLL.GetMonthByDate(DateTime.Now).ToString();
ddl_EndMonth.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate<GETDATE() AND Year>=" + (DateTime.Today.Year - 1).ToString());
ddl_EndMonth.DataBind();
ddl_EndMonth.SelectedValue = AC_AccountMonthBLL.GetMonthByDate(DateTime.Now).ToString();
ddl_FeeType.DataSource = DictionaryBLL.GetDicCollections("FNA_FeeType");
ddl_FeeType.DataBind();
ddl_FeeType.Items.Insert(0, new ListItem("全部", "0"));
//if (ddl_FeeType.Items.FindByValue("1") != null) ddl_FeeType.SelectedValue = "1";
ddl_State.DataSource = DictionaryBLL.GetDicCollections("FNA_FeeWriteOffState");
ddl_State.DataBind();
ddl_State.Items.Insert(0, new ListItem("全部", "0"));
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:35,代码来源:FeeWriteOffList.aspx.cs
示例12: BindDropDown
private void BindDropDown()
{
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
ddl_ApproveFlag.DataSource = DictionaryBLL.GetDicCollections("PUB_ApproveFlag");
ddl_ApproveFlag.DataBind();
ddl_ApproveFlag.Items.Insert(0, new ListItem("所有", "0"));
ddl_ApproveFlag.SelectedValue = "1";
ddl_ActiveFlag.DataSource = DictionaryBLL.GetDicCollections("CM_ActiveFlag");
ddl_ActiveFlag.DataBind();
ddl_ActiveFlag.Items.Insert(0, new ListItem("所有", "0"));
ddl_ActiveFlag.SelectedValue = "1";
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:26,代码来源:PropertyList.aspx.cs
示例13: bt_AddApply_Click
protected void bt_AddApply_Click(object sender, EventArgs e)
{
if ((int)ViewState["ID"] == 0)
{
MessageBox.Show(this, "对不起,请您先保存后在发起申请");
return;
}
Org_StaffBLL bll = new Org_StaffBLL((int)ViewState["ID"]);
if (Org_StaffNumberLimitBLL.CheckAllowAdd(bll.Model.OrganizeCity, bll.Model.Position) < 0)
{
MessageBox.Show(this, "对不起当前城市该职位员工人数满额,要想继续新增请与人事经理联系");
return;
}
int budget = Org_StaffNumberLimitBLL.CheckOverBudget(bll.Model.OrganizeCity, bll.Model.Position);
NameValueCollection dataobjects = new NameValueCollection();
dataobjects.Add("ID", ViewState["ID"].ToString());
dataobjects.Add("OrganizeCity", bll.Model.OrganizeCity.ToString());
dataobjects.Add("Position", bll.Model.Position.ToString());
dataobjects.Add("SalaryFlag", bll.Model["SalaryFlag"].ToString());
dataobjects.Add("StaffName", bll.Model.RealName.ToString());
dataobjects.Add("IsOverBudget", budget < 0 ? "1" : "2");
int TaskID = EWF_TaskBLL.NewTask("Add_Staff", (int)Session["UserID"], "人员入职流程,姓名:" + bll.Model.RealName, "~/SubModule/StaffManage/StaffDetail.aspx?ID=" + ViewState["ID"].ToString(), dataobjects);
if (TaskID > 0)
{
bll.Model["TaskID"] = TaskID.ToString();
bll.Model["State"] = "2";
bll.Update();
}
Response.Redirect("~/SubModule/EWF/Apply.aspx?TaskID=" + TaskID.ToString());
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:34,代码来源:StaffDetail.aspx.cs
示例14: BindDropDown
private void BindDropDown()
{
ddl_BeginMonth.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate <= GETDATE() AND YEAR >= 2013");
ddl_BeginMonth.DataBind();
ddl_BeginMonth.SelectedValue = (AC_AccountMonthBLL.GetMonthByDate(DateTime.Now) - 1).ToString();
ddl_EndMonth.DataSource = AC_AccountMonthBLL.GetModelList("BeginDate <= GETDATE() AND YEAR >= 2013");
ddl_EndMonth.DataBind();
ddl_EndMonth.SelectedValue = (AC_AccountMonthBLL.GetMonthByDate(DateTime.Now) - 1).ToString();
#region 绑定用户可管辖的管理片区
if (Session["UserID"] != null)
{
int staffid = (int)Session["UserID"];
Org_StaffBLL staff = new Org_StaffBLL(staffid);
//select_Staff.SelectText = staff.Model.RealName;
//select_Staff.SelectValue = staffid.ToString();
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
}
#endregion
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:35,代码来源:MYSaleInFlagSummary.aspx.cs
示例15: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["Type"] = Request.QueryString["Type"] == null ? 0 : int.Parse(Request.QueryString["Type"]); //客户类型,1:公司仓库 2:经销商 3:终端门店
#region 设置页面Title
if ((int)ViewState["Type"] == 1)
lb_PageTitle.Text = "办事处出货查询";
else if ((int)ViewState["Type"] == 2)
lb_PageTitle.Text = "经销商出货查询";
else if ((int)ViewState["Type"] == 3)
lb_PageTitle.Text = "零售商销量查询";
else if ((int)ViewState["Type"] == 4)
lb_PageTitle.Text = "办事处进货查询";
#endregion
AdvancedSearch1.ExtCondition = "SVM_SalesVolume.Type=" + ViewState["Type"].ToString();
#region 判断当前可查询的范围
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);
if (staff.Model.OrganizeCity > 1)
{
Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity, true);
string orgcitys = orgcity.GetAllChildNodeIDs();
if (orgcitys != "") orgcitys += ",";
orgcitys += staff.Model.OrganizeCity.ToString();
AdvancedSearch1.ExtCondition += " AND SVM_SalesVolume.OrganizeCity IN (" + orgcitys + ")";
}
#endregion
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:34,代码来源:SalesVolumeAdvanceFind.aspx.cs
示例16: BindDropDown
private void BindDropDown()
{
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_Position.DataSource = Org_PositionBLL.GetAllPostion();
#region 如果非总部职位,其只能选择自己职位及以下职位
Org_Position p = new Org_PositionBLL(staff.Model.Position).Model;
if (p != null && p.IsHeadOffice != "Y" && p.Remark != "OfficeHR")
{
//tr_Position.RootValue = staff.Model.Position.ToString();// p.SuperID.ToString();
tr_Position.RootValue = p.SuperID.ToString();
tr_Position.SelectValue = staff.Model.Position.ToString();
}
else
{
tr_Position.RootValue = "1";
//tr_Position.SelectValue = "1";
}
tr_Position.SelectValue = tr_Position.RootValue;
#endregion
ddl_ApproveFlag.DataSource = DictionaryBLL.GetDicCollections("PUB_ApproveFlag");
ddl_ApproveFlag.DataBind();
ddl_ApproveFlag.Items.Insert(0, new ListItem("请选择", "0"));
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:25,代码来源:KPI_SchemeList.aspx.cs
示例17: BindDropDown
private void BindDropDown()
{
#region 绑定用户可管辖的管理片区
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
tr_OrganizeCity.DataSource = staff.GetStaffOrganizeCity();
if (tr_OrganizeCity.DataSource.Select("ID = 1").Length > 0)
{
tr_OrganizeCity.RootValue = "0";
tr_OrganizeCity.SelectValue = "1";
}
else
{
tr_OrganizeCity.RootValue = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity).Model.SuperID.ToString();
tr_OrganizeCity.SelectValue = staff.Model.OrganizeCity.ToString();
}
#endregion
ddl_Month.DataSource = AC_AccountMonthBLL.GetModelList("");
ddl_Month.DataBind();
ddl_Month.SelectedValue = AC_AccountMonthBLL.GetMonthByDate(DateTime.Now).ToString();
ddl_State.DataSource = DictionaryBLL.GetDicCollections("ORD_OrderDeliveryState");
ddl_State.DataBind();
ddl_State.Items.Insert(0, new ListItem("全部", "0"));
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:26,代码来源:OrderDeliveryList.aspx.cs
示例18: Bind
private void Bind()
{
int StaffID = int.Parse(ViewState["StaffID"].ToString());
if (StaffID <= 0)
StaffID = int.Parse(Session["UserID"].ToString());
Org_StaffBLL _staff = new Org_StaffBLL(StaffID);
int type = 0;
int.TryParse(ViewState["Type"].ToString(),out type);
int city=0;
int.TryParse(ViewState["City"].ToString(),out city);
switch (type)
{
case 1:
p_headr.InnerText = "陈列费用下游待审批";break;
case 2:
p_headr.InnerText = "返利费用下游待审批";break;
case 3:
p_headr.InnerText = "导购工资下游待审批";break;
case 4:
p_headr.InnerText = "费用核销下游待审批";break;
case 5:
p_headr.InnerText = "促销品请购下游待审批";break;
default:
p_headr.InnerText = "其他费用下游待审批";break;
}
gv_Detail.DataSource = _staff.GetLowerPositionTask(type, city, (int)ViewState["Month"]);
gv_Detail.DataBind();
gv_Detail.BindGrid();
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:30,代码来源:Pop_ShowLowerPositionTask.aspx.cs
示例19: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
#region 获取页面参数
Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"]);
int _relateclient = 0;
if (staff.Model["RelateClient"] != "" && int.TryParse(staff.Model["RelateClient"], out _relateclient))
{
ViewState["ClientID"] = _relateclient;
select_Client.Enabled = false;
}
else
{
if (Request.QueryString["ClientID"] != null)
{
ViewState["ClientID"] = Int32.Parse(Request.QueryString["ClientID"]);
Session["ClientID"] = ViewState["ClientID"];
}
else if (Session["ClientID"] != null && Request.QueryString["State"] == null && Request.QueryString["ApproveFlag"] == null)
{
ViewState["ClientID"] = Int32.Parse(Session["ClientID"].ToString());
}
}
#endregion
if (ViewState["ClientID"] != null)
{
CM_ClientBLL client = new CM_ClientBLL((int)ViewState["ClientID"]);
select_Client.SelectValue = ViewState["ClientID"].ToString();
select_Client.SelectText = client.Model.FullName;
}
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:35,代码来源:OrderAlibraryList.aspx.cs
示例20: bt_Refresh_Click
protected void bt_Refresh_Click(object sender, EventArgs e)
{
if (tr_OrganizeCity.SelectValue == "0")
{
MessageBox.Show(this, "请选择要查询的管理片区!");
return;
}
ReportViewer1.ServerReport.ReportServerCredentials = new MCSReportServerCredentials();
ReportViewer1.ServerReport.ReportPath = ViewState["ReportPath"].ToString();
ReportViewer1.ServerReport.ReportServerUrl = new Uri(ViewState["ReportServerUrl"].ToString());
if (ReportViewer1.ServerReport.GetParameters().Count == 2)
{
int staff = 0;
int position = new Org_StaffBLL((int)Session["UserID"]).Model.Position;
string remark = new Org_PositionBLL(position).Model.Remark;
if (remark != null && remark.Contains("OnlyViewSelfReport"))
{
staff = (int)Session["UserID"];
}
ReportParameter[] _parms = {
new ReportParameter("OrganizeCity", tr_OrganizeCity.SelectValue),
new ReportParameter("Staff",staff.ToString())
};
ReportViewer1.ServerReport.SetParameters(_parms);
}
else
{
ReportParameter[] _parms = {
new ReportParameter("OrganizeCity", tr_OrganizeCity.SelectValue)
};
ReportViewer1.ServerReport.SetParameters(_parms);
}
}
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:35,代码来源:PubReportViewer10.aspx.cs
注:本文中的Org_StaffBLL类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论