예제 #1
0
        public 往来单位 CreateCompany(string name, string contact, string telephone, string address, bool provider, bool customer, 销售区域 area = null)
        {
            var company = ObjectSpace.CreateObject <往来单位>();

            company.供应商  = true;
            company.称    = name;
            company.客户   = customer;
            company.供应商  = provider;
            company.销售区域 = area;


            //var con = ObjectSpace.CreateObject<员工>();
            //con.名称 = contact;
            //con.手机 = telephone;
            //var add = ObjectSpace.CreateObject<地址>();
            //add.名称 = address;

            //company.联系人.Add(con);
            //company.地址.Add(add);

            return(company);
        }
예제 #2
0
        public 往来单位 CreateCompany(string name, string contact, string telephone, string address, bool provider, bool customer, 销售区域 area = null)
        {
            var company = ObjectSpace.CreateObject<往来单位>();
            company.供应商 = true;
            company.名称 = name;
            company.客户 = customer;
            company.供应商 = provider;
            company.销售区域 = area;

            //var con = ObjectSpace.CreateObject<员工>();
            //con.名称 = contact;
            //con.手机 = telephone;
            //var add = ObjectSpace.CreateObject<地址>();
            //add.名称 = address;

            //company.联系人.Add(con);
            //company.地址.Add(add);

            return company;
        }