摘要: 年份: <script type="text/javascript" src="http://www.shicishu.com/down/WdatePicker.js"></script> <asp:Panel> <asp:Label ID="Label3" runat="server" Text= 阅读全文
posted @ 2021-09-05 21:22 刘贵庆 阅读(79) 评论(0) 推荐(0) 编辑
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FillDep(); } // FillDG(); // if (!IsPostBack) // { // FillUI(); // } } <asp: 阅读全文
posted @ 2021-09-05 21:08 刘贵庆 阅读(59) 评论(0) 推荐(0) 编辑
摘要: dtToSList = sqlAccess.ExecuteTable(CommandText); ToSNo = Convert.ToString(dtToSList.Rows[i].ItemArray[1]); if (Convert.ToInt32(sqlAccess.ExecuteScalar 阅读全文
posted @ 2021-09-05 20:58 刘贵庆 阅读(143) 评论(0) 推荐(0) 编辑
摘要: //自动生成账单编号 public string GetNewPoID(string Prefix) { string NewPoID = Prefix + DateTime.Now.Year.ToString().Substring(2); CommandText = "SELECT count( 阅读全文
posted @ 2021-09-05 20:46 刘贵庆 阅读(391) 评论(0) 推荐(0) 编辑
摘要: <asp:BoundField HeaderText="序号" /> OnRowCreated="gridview_RowCreated" protected void gridview_RowCreated(object sender, GridViewRowEventArgs e) { if ( 阅读全文
posted @ 2021-09-05 20:35 刘贵庆 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Response.Redirect(EditUrl("MEUID", lblMEUID.Text, "Page2", "PageOneMK", "-1")); 阅读全文
posted @ 2021-09-05 20:33 刘贵庆 阅读(33) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.U 阅读全文
posted @ 2021-09-05 20:31 刘贵庆 阅读(143) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" src="http://www.shicishu.com/down/WdatePicker.js"></script> <asp:Label ID="Label3" runat="server" Text="年份:"></asp:Labe 阅读全文
posted @ 2021-09-05 20:30 刘贵庆 阅读(108) 评论(0) 推荐(0) 编辑
摘要: OnRowCreated="gridStatistic_RowCreated private void FillUI() { gridStatistic.DataSource = dtStatistic; gridStatistic.DataBind(); } protected void grid 阅读全文
posted @ 2021-09-05 20:25 刘贵庆 阅读(46) 评论(0) 推荐(0) 编辑
摘要: OnRowCreated="gridViewCorrection_RowCreated" <asp:BoundField HeaderText="序号" /> protected void gridViewCorrection_RowCreated(object sender, GridViewRo 阅读全文
posted @ 2021-09-05 20:22 刘贵庆 阅读(62) 评论(0) 推荐(0) 编辑
摘要: protected void gridSettlement_RowDataBound(object sender, GridViewRowEventArgs e) { if (dtSettlement != null && dtSettlement.Rows.Count > 0) { decimal 阅读全文
posted @ 2021-09-05 20:21 刘贵庆 阅读(76) 评论(0) 推荐(0) 编辑
摘要: e.Row.Cells[1].ForeColor = System.Drawing.Color.Blue; 阅读全文
posted @ 2021-09-05 20:19 刘贵庆 阅读(86) 评论(0) 推荐(0) 编辑
摘要: protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { switch (e.Row.RowType) { case DataControlRowType.Header: //总表头 TableCellC 阅读全文
posted @ 2021-09-05 20:18 刘贵庆 阅读(168) 评论(0) 推荐(0) 编辑
摘要: OnRowCommand="gridInfoData_RowCommand" <Columns> <asp:ButtonField HeaderText="总额" ButtonType="Link" DataTextField="MoneySum" CommandName="PorTrue" Ite 阅读全文
posted @ 2021-09-05 20:13 刘贵庆 阅读(56) 评论(0) 推荐(0) 编辑
摘要: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="info.ascx.cs" Inherits="DotNetNuke.Modules.HRAddUser.info" %> <style> .tablestyles { positi 阅读全文
posted @ 2021-09-05 20:08 刘贵庆 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 分页: 1、先把属性AllowPaging设置为true, 2、pagesize为每一页的行数,PageSize="15". 3、OnPageIndexChanging="gridview1_PageIndexChanging" <asp:GridView ID="gridYearStsDetail 阅读全文
posted @ 2021-09-05 20:03 刘贵庆 阅读(95) 评论(0) 推荐(0) 编辑
摘要: DateTime tmEndDate = DateTime.Today; DateTime tmBuyDate; CommandText = "select .... from ..... where id=" + tbid.ToString(); tmBuyDate = Convert.ToDat 阅读全文
posted @ 2021-09-05 20:01 刘贵庆 阅读(17) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;u 阅读全文
posted @ 2021-09-05 19:53 刘贵庆 阅读(38) 评论(0) 推荐(0) 编辑