10 2016 档案

摘要:1. form 设置为 private 始终 只打开一个 2.NavBarControl尝试设置Item的属性LargeImageIndex的值,则发现没有任何变化,这是为什么呢?原来在设置这个属性之前还需要设置此Item所在Group的属性GroupStyle的值为LargeImageText。 3. xtraTabbedMdiManager1.SelectedPage = ... 阅读全文
posted @ 2016-10-30 20:45 刀小爱
摘要:// web config public class dbcr:DbContext { public dbcr() : base("name=constr") { } protected override void OnModelCreating(DbM... 阅读全文
posted @ 2016-10-29 08:43 刀小爱
摘要:@Html.ActionLink("index", "index"); @Html.ActionLink("zwj", "zsf", new { a = "1", b = "2" }, new { id = 10 }); @Html.DropDownList("city",null,new { id="zwjk"}); @using (Html.BeginForm("dd", "bbbb", .. 阅读全文
posted @ 2016-10-27 15:16 刀小爱
摘要:dataGridView1.DataSource = db.Class1.Where(u => u.id==123).ToList().Select(u => { return new { id=u.id}; }).ToList(); 阅读全文
posted @ 2016-10-26 08:50 刀小爱 阅读(255) 评论(0) 推荐(0)
摘要://直接删除 KSBMB k1028 = new KSBMB() { KSBM = "1028"}; z1.Entry(k1028).State = System.Data.Entity.EntityState.Deleted; z1.SaveChanges(); // 必须dbcontext 上下文中有 才能删除 也就必须要查询 才能... 阅读全文
posted @ 2016-10-24 15:21 刀小爱
摘要:insert into zcy (pm,gg,kcsl,pym) output inserted.pym values ('111','dd',1,'ddd') SCOPE_IDENTITY 和 @@IDENTITY 返回在当前会话中的任何表内所生成的最后一个标识值。但是,SCOPE_IDENTITY 只返回插入到当前作用域中的值;@@IDENTITY 不受限于特定的作用域。 例如... 阅读全文
posted @ 2016-10-24 14:29 刀小爱
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2016-10-22 16:36 刀小爱 阅读(145) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Diagnostics; 7 8 namespace ConsoleApplication7 9... 阅读全文
posted @ 2016-10-20 14:15 刀小爱
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { static void Main(s... 阅读全文
posted @ 2016-10-19 16:29 刀小爱
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
posted @ 2016-10-18 11:12 刀小爱 阅读(720) 评论(0) 推荐(0)
摘要:public static object OpenFile(string fileName) { var fullFileName = string.Format("{0}\\{1}", Directory.GetCurrentDirectory(), fileName); if (!File.Exists(fullFileNam... 阅读全文
posted @ 2016-10-12 16:51 刀小爱
该文被密码保护。
posted @ 2016-10-10 16:55 刀小爱 阅读(2) 评论(0) 推荐(0)
摘要:跟 属性 columnautowidth 效果不一样 阅读全文
posted @ 2016-10-10 16:30 刀小爱 阅读(2375) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-10-10 09:31 刀小爱 阅读(2) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-10-09 13:46 刀小爱 阅读(1) 评论(0) 推荐(0)
摘要:private void textBox1_TextChanged(object sender, EventArgs e) { if ((sender as TextBox).Text.Length == 0) { DevExpress.Utils.ToolTipLocation tipLocat... 阅读全文
posted @ 2016-10-07 15:32 刀小爱 阅读(356) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2016-10-07 09:50 刀小爱 阅读(161) 评论(0) 推荐(0)
摘要:MsSqlConnectionParameters ms = new MsSqlConnectionParameters(); ms.AuthorizationType = MsSqlAuthorizationType.SqlServer; ms.Password = "**"; ms.UserNam... 阅读全文
posted @ 2016-10-06 16:40 刀小爱 阅读(431) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-10-04 14:23 刀小爱 阅读(2) 评论(0) 推荐(0)
摘要:gridLookUpEdit1.Text= "请输入..."; gridLookUpEdit1.Properties.NullText = "请输入..."; // TODO: 这行代码将数据加载到表“contactsDataSet1.Customers”中。您可以根据需要移动或删除它。 this.customersT... 阅读全文
posted @ 2016-10-03 11:37 刀小爱 阅读(1249) 评论(0) 推荐(0)
摘要:gridView1.Columns[0].AppearanceCell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; gridView1.Columns[0].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlign... 阅读全文
posted @ 2016-10-02 16:27 刀小爱 阅读(3460) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2016-10-02 15:36 刀小爱 阅读(190) 评论(0) 推荐(0)
摘要:绑定的列和lookupedit 不要同名 * 阅读全文
posted @ 2016-10-01 22:28 刀小爱 阅读(413) 评论(0) 推荐(0)