/// <summary>
        /// 产品下线方法
        /// </summary>
        /// <param name="下线DTO"></param>
        internal static void Func产品下线(线DTO 线DTO)
        {
            //  审核表
            String sql = "INSERT INTO t_rolloff ( id, create_date, CODE, flag )\n" +
                         "VALUES\n" +
                         "	( '"+ 线DTO.Id + "', NOW( ), '" + 线DTO.Code + "', 0 );";

            SQLmtm.ExecuteSql(sql);
            //  关联表
            foreach (DXApplicationTangche.UC.门店下单.DTO.款式图片一览Dto 款式图片一览Dto in  线DTO.款式一览)
            {
                sql = "INSERT INTO r_rolloff_style ( ROLLOFF_ID, STYLE_ID )\n" +
                      "VALUES\n" +
                      "	( '" + 线DTO.Id + "', '" + 款式图片一览Dto.SYS_STYLE_ID + "' );";
                SQLmtm.ExecuteSql(sql);
            }
        }
Beispiel #2
0
 public Frm产品下线(List <款式图片一览Dto> 款式图片一览Dtos)
 {
     InitializeComponent();
     this.线DTO = new  线DTO(款式图片一览Dtos);
     this.gridControl待办.DataSource = this.线DTO.款式一览;
 }