public TransEmsView() { InitializeComponent(); xapFormControl1.Load += new EventHandler(xapFormControl1_Load); xapFormControl1.RefFilter += new EventHandler <xap.rui.control.refcontrol.events.RefActivatingEventArgs>(xapFormControl1_RefFilter); SheetName = EMS_DEFAULT_CAPTION; file.FormId = CiOrdBillFormTmplConst.CIORD_IP_TransEmsView;// "20151128070645227IVM"; file.FormStyle = FormStyle.Card; xapFormControl1.SetEditPolicy(true); }
/// <summary> /// 发送树节点选中事件到卡上显示数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SetGridPolicy(bool flag) { DataPolicy policy = new DataPolicy(); policy.AllowNew = false; policy.AllowEdit = flag; policy.AllowRemove = false; policy.AllowSave = false; policy.FullEdit = flag; xapFormControl1.SetEditPolicy(flag, new DataPolicy[1] { policy }); }