Пример #1
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(bd_sbcs newobj) {
     newobj.ParentID = parentID;
     if (parentObj != null ) {
         newobj.c1 = parentObj.c1;
         if (parentObj.bh.Length > 2) {
             newobj.bh = newobj.ParentID + getbh(8);// parentObj.bh.Substring(0, 2);
             //newobj.ID = newobj.bh;
             newobj.mc = parentObj.mc;
         } else  if (parentObj.bh.Length==2){
             newobj.bh =newobj.ParentID+ getbh(5);
         }
     }
 }
Пример #2
0
 void ucTop_FocusedRowChanged(object sender, bd_sbcs obj)
 {
     ucBottom.ParentObj = obj;
     splitCC1.Panel2.Text = "设备分类:" + (obj != null ? obj.mc : "");
 }