Esempio n. 1
0
        public void CopyMore(object sender, object e)
        {
            Container      form1 = sender as Container;
            SubSegmentForm obj   = form1.GetWorkAreas as SubSegmentForm;

            if (obj != null)
            {
                FiexdCheck ck = new FiexdCheck();
                ck.Activitie       = obj.Activitie;
                ck.CurrentBusiness = obj.CurrentBusiness;
                ck.StrCZBM         = "KFZ";
                // bool flag = false;
                foreach (TreeListNode item in obj.subSegmentListData1.treeList1.Selection)
                {
                    DataRowView v = obj.subSegmentListData1.treeList1.GetDataRecordByNode(item) as DataRowView;
                    if (v != null)
                    {
                        if (v["LB"].ToString().Contains("子目"))
                        {
                            ck.ArrDE.Add(v);
                        }
                        else
                        {
                            MsgBox.Show("请不要选择非子目!", MessageBoxButtons.OK); return;
                        }
                    }
                }

                ck.Show(obj);
            }
        }
Esempio n. 2
0
        public void CopySingle(object sender, object e)
        {
            Container      form1 = sender as Container;
            SubSegmentForm obj   = form1.GetWorkAreas as SubSegmentForm;

            if (obj != null)
            {
                DataRowView v = obj.subSegmentListData1.treeList1.Current;
                if (v == null)
                {
                    MsgBox.Show("没有选择子目!", MessageBoxButtons.OK); return;
                }
                if (v["LB"].ToString().Contains("子目"))
                {
                    FiexdCheck ck = new FiexdCheck();
                    ck.Activitie       = obj.Activitie;
                    ck.CurrentBusiness = obj.CurrentBusiness;
                    ck.StrCZBM         = "FZZT";
                    ck.ArrDE.Add(obj.subSegmentListData1.treeList1.Current);
                    ck.Show(obj);
                }
                else
                {
                    { MsgBox.Show("没有选择子目!", MessageBoxButtons.OK); return; }
                }
            }
        }