public void Initialize(VO_WF_CZYB d_CZYOriginal) { Title = "修改操作员"; _D_CZYModify = d_CZYOriginal.Clone <VO_WF_CZYB>(); D_MM.Password = d_CZYOriginal.MM; D_MMX.Password = d_CZYOriginal.MM; D_ZTItems.Clear(); D_ZTItems.Add(new KeyValue <decimal, string>(0, "不可用")); D_ZTItems.Add(new KeyValue <decimal, string>(1, "可用")); D_ZTSelectedItem = D_ZTItems.FirstOrDefault(a => a.Key == d_CZYOriginal.DCZT); this.StartEdit(D_CZYModify, "D_CZYModify"); }
public void Initialize() { Title = "增加操作员"; _D_CZYNew = new VO_WF_CZYB(); _D_CZYNew.CZYBH = Guid.NewGuid().ToString(); _D_CZYNew.PZID = Guid.NewGuid().ToString(); D_ZTItems.Clear(); D_ZTItems.Add(new KeyValue <decimal, string>(0, "不可用")); D_ZTItems.Add(new KeyValue <decimal, string>(1, "可用")); D_ZTSelectedItem = D_ZTItems[1]; this.StartEdit(D_CZYNew, "D_CZYNew"); }