• 同事写的会议记录


    //
    // DotNetNuke?- http://www.dotnetnuke.com
    // Copyright (c) 2002-2017
    // by DotNetNuke Corporation
    //
    // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
    // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
    // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
    // to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    //
    // The above copyright notice and this permission notice shall be included in all copies or substantial portions
    // of the Software.
    //
    // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
    // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
    // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    // DEALINGS IN THE SOFTWARE.
    //

    using System;
    using DotNetNuke.Services.Exceptions;
    using DotNetNuke.Services.Localization;
    using DotNetNuke.Entities.Modules;
    using DotNetNuke.Entities.Modules.Actions;
    using System.Web.UI.WebControls;
    using DbHelper;
    using System.Web.UI;
    using Insus.NET;
    using C1.Web.Wijmo.Controls.C1GridView;

    namespace Modules.AGL_FP_dangqiantaizhang
    {

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The ViewAGL_FP_dangqiantaizhang class displays the content
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    partial class ViewAGL_FP_dangqiantaizhang : PortalModuleBase, IActionable
    {
    #region "Event Handlers"

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// Page_Load runs when the control is loaded
    /// </summary>
    /// -----------------------------------------------------------------------------
    protected void Page_Load(object sender, System.EventArgs e)
    {
    try
    {
    if (!Page.IsPostBack)
    {
    gridviewInitial();
    }
    }
    catch (Exception exc)
    {
    //Module failed to load
    Exceptions.ProcessModuleLoadException(this, exc);
    }
    }

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// lstContent_ItemDataBound runs when items are bound. Here the
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    /// -----------------------------------------------------------------------------
    protected void lstContent_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)
    {
    string strContent = "";
    Label lblContent = (Label)e.Item.FindControl("lblContent");
    lblContent.Text = strContent;
    }

    #endregion

    #region "Optional Interfaces"

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// Registers the module actions required for interfacing with the portal framework
    /// </summary>
    /// <value></value>
    /// <returns></returns>
    /// <remarks></remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public ModuleActionCollection ModuleActions
    {
    get
    {
    ModuleActionCollection Actions = new ModuleActionCollection();
    Actions.Add(GetNextActionID(), Localization.GetString(ModuleActionType.AddContent, this.LocalResourceFile),
    ModuleActionType.AddContent, "", "add.gif", EditUrl(), false, DotNetNuke.Security.SecurityAccessLevel.Edit,
    true, false);
    return Actions;
    }
    }

    #endregion
    protected void btnDetail_Click(object sender, EventArgs e)
    {

    }
    public void gridviewInitial()
    {
    System.Data.DataTable orderDt = DbHelper.DAL.DateSet("SELECT [id],[portal_id],[customer_id],[InvoicesMoney],[dateStr],[state],[account_bank],[account_number],[identity_number],[address],[telephone],[out_totalmoney],[fullname],[company], fp_type,statement,isnull(billNumberId,0) billNumberId FROM [InvoiceSure] where invid in(select id from Invoices_linshi where duicuo=0) ").Tables[0];

    C1GridView1.DataSource = orderDt;
    C1GridView1.DataBind();
    foreach (C1GridViewRow gvr in C1GridView1.Rows)
    {
    string a = C1GridView1.Rows[gvr.RowIndex].Cells[0].Text.Trim();
    string b = C1GridView1.Rows[gvr.RowIndex].Cells[1].Text.Trim();
    string c = C1GridView1.Rows[gvr.RowIndex].Cells[2].Text.Trim();
    }
    }
    protected void C1GridView1_RowDataBound(object sender, C1GridViewRowEventArgs e)
    {
    if (e.Row.RowType == C1GridViewRowType.DataRow)
    {
    if (e.Row.Cells[15].Text.Trim().Replace("&nbsp;", "") == "1")
    {
    e.Row.Cells[15].Text = "已领取";
    }
    else
    {
    e.Row.Cells[15].Text = "未领取";
    e.Row.Cells[15].Style.Add("background-color", "red");
    }
    if (e.Row.Cells[8].Text.Trim().Replace("&nbsp;", "") == "固定")
    {
    e.Row.Cells[8].Text = "固定月结";
    }
    e.Row.Cells[12].Text = Convert.ToDouble(e.Row.Cells[12].Text.Trim().Replace("&nbsp;", "")).ToString("N");
    }
    }
    }

    }

  • 相关阅读:
    sql中实现先排序后分组
    mysql中的锁机制之概念篇
    PHP对程序员的要求更高
    给初学PHP的学习线路和建议
    设计模式六大原则
    Mysql忘记密码怎么办
    数据库 sql
    精准优化 if…else ,干掉,过多,烂代码!
    JDK1.8 新特性(全)
    mysql 如何修改 删除 添加 表主键
  • 原文地址:https://www.cnblogs.com/1971855407qq/p/8539403.html
Copyright © 2020-2023  润新知