摘要: e.Row.Attributes.Add("Style", "background-color:#D3D3D3"); 阅读全文
posted @ 2013-05-13 16:49 louiskoo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: var is_over = new ObjectParameter("ISOVER", typeof(string)); context.ExecuteFunction("AERO_STATUS_JUDGE", new ObjectParameter("AERO_ID", aero_id), is_over); string ret = is_over.Value.ToString();int K = context.ExecuteStoreCommand("delete from SRC_DEF_PLATFORM_AERO 阅读全文
posted @ 2013-05-13 16:42 louiskoo 阅读(557) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 判断是否是非法字符 /// </summary> /// <param name="str">判断是字符</param> /// <returns></returns> public static Boolean isLegalNumber(string str) { char[] charStr = str.ToLower().ToCharArray(); for (int i = 0; i < charStr.Length; i... 阅读全文
posted @ 2013-05-13 16:31 louiskoo 阅读(5401) 评论(1) 推荐(0) 编辑
摘要: if (!File.Exists(path)) { File.Create(path).Close(); } using (StreamWriter w = File.AppendText(path)) { w.WriteLine("Error log:"); w.WriteLine("Error Time:"+DateTime.Now); ... 阅读全文
posted @ 2013-05-13 16:11 louiskoo 阅读(193) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;using System.IO;using System.Globalization;namespace ADM.ProgressMonitor.DataObjects{ public class ErrHandler { public static void WriteError(Exception error) { ... 阅读全文
posted @ 2013-05-13 16:10 louiskoo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Linq;using ADM.ProgressMonitor.DataObjects;using System.Collections.Generic;using System.Web.UI;using ADM.ProgressMonitor.WebControl;using System.Web.SessionState;using ADM.ProgressMonitor.BusinessRules;using System.Data.Objects;namespace ADM.ProgressMonitor.DataAccess{ ... 阅读全文
posted @ 2013-05-13 16:09 louiskoo 阅读(367) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 直线插值 /// </summary> /// <param name="linePoints">点击</param> /// <param name="x">X插值点</param> /// <returns>插值的Y值</returns> public static double? LineInterpolation(List<PointF> linePoints, double x) { int? idx1 阅读全文
posted @ 2013-05-13 16:07 louiskoo 阅读(3631) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript" type="text/javascript"> function StartProgressBar() { ShowConfirmClose(false); var myExtender = $find('ModalPopupExtender1'); myExtender.show(); return true; } var pb_strConfirmCloseMessage; var pb_... 阅读全文
posted @ 2013-05-13 16:06 louiskoo 阅读(402) 评论(0) 推荐(0) 编辑
摘要: AjaxFunc.MessageBox(Page, "5", "请选择至少一种型号!");using System;using System.Web.UI;/// <summary>/// AJAX帮助类/// </summary>public static class AjaxFunc{ /// <summary> /// 返回上一页 /// </summary> /// <param name="ps"></param> public static void 阅读全文
posted @ 2013-05-13 16:05 louiskoo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: if(!IsPostBack) 阅读全文
posted @ 2013-05-13 16:03 louiskoo 阅读(100) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 根据输入的判断条件进行多项查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Search_Click(object sender, EventArgs e) { var result = from u in context.SRC_DEF_PLATFORM sele... 阅读全文
posted @ 2013-05-13 16:02 louiskoo 阅读(185) 评论(0) 推荐(0) 编辑
摘要: //分页初始化 btnFirst.Enabled = true; btnPrev.Enabled = true; btnNext.Enabled = true; btnLast.Enabled = true; LblCurrentIndex.Visible = true; LblPageCount.Visible = true; LblRecordCount.Visible = true; LblCurrentIndex... 阅读全文
posted @ 2013-05-13 16:01 louiskoo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: using (System.Data.Common.DbTransaction traction = context.Connection.BeginTransaction()) { try { SRC_DEF_BASELINE_ALART t = new SRC_DEF_BASELINE_ALART(); //新添加的SRC_DEF_BASELINE_ALART的ID位已有的加1 ... 阅读全文
posted @ 2013-05-13 15:59 louiskoo 阅读(220) 评论(0) 推荐(0) 编辑
摘要: protected void RbIsManual_CheckedChanged(object sender, EventArgs e) { RadioButton rb = sender as RadioButton; if (rb != null) { GridViewRow row = rb.Parent.Parent as GridViewRow; Button confirm = (Button)row.FindControl("save")... 阅读全文
posted @ 2013-05-13 15:56 louiskoo 阅读(332) 评论(0) 推荐(0) 编辑
摘要: <asp:GridView ID="AeroDataListGridView" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" onrowdatabound="AeroDataListGridView_RowDataBound" AllowPaging="True" onpageindex 阅读全文
posted @ 2013-05-13 15:54 louiskoo 阅读(7216) 评论(0) 推荐(0) 编辑
摘要: public class SeatChoosenEventArgs : EventArgs { public 呼叫中心工号核对表Entity SeatChoosen; } public partial class UCSeatIcon : UserControl{ private 呼叫中心工号核对表Entity _entity; public event EventHandler<SeatChoosenEventArgs> SeatChoosenEvent; private void pictureBox1_Click(object sende... 阅读全文
posted @ 2013-05-13 15:32 louiskoo 阅读(12368) 评论(0) 推荐(0) 编辑
摘要: private void RefreashData() { Thread t = new Thread(new ThreadStart(delegate { try { seatDay = SeatAlgorithm.GetSeatTotalDayData(); seatWeek = SeatAlgorithm.GetSeatTotalWeekData(); gr... 阅读全文
posted @ 2013-05-13 10:52 louiskoo 阅读(4156) 评论(0) 推荐(0) 编辑
摘要: public partial class WordArt : UserControl//这是一个艺术字的控件 { //文本属性 private string _text = "WordArt"; public string Caption { get { return _text; } set { _text = value; } } //字体以及大小 private Font _WordArtFont = new Font("宋体", 15);... 阅读全文
posted @ 2013-05-13 10:49 louiskoo 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: internal class ChartStyle { internal static void RemoveZeroDataPointLabel(Chart chart) { foreach (Series series in chart.Series) { foreach (DataPoint dp in series.Points) { if (dp.YValues[0].ToString() == "0") ... 阅读全文
posted @ 2013-05-13 10:43 louiskoo 阅读(1854) 评论(0) 推荐(0) 编辑