예제 #1
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(sd_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, sd_sbcs obj) {
     ucBottom.ParentObj = obj;
     splitCC1.Panel2.Text = "设备分类:" + (obj != null ? obj.mc : "");
 }