コード例 #1
0
ファイル: AddNewUnit.cs プロジェクト: Spritutu/ntxx
 private void button2_Click(object sender, EventArgs e)
 {
     int ModelOrder = CatalogBLL.initialOrder(1);
     if (RMisClick)
     {
         XuanxingUI XuUi = new XuanxingUI(ModelOrder);
         this.Close();
         XuUi.ShowDialog();
     }
     else if(ModisClick){
         AAonRating.aaon.DeviceID = 2;
         ModAHUnit Mod = new ModAHUnit();
         Mod.InitialForm(0, null);
         Mod.OrderIDToMod = OrderSale;
         this.Close();
         Mod.ShowDialog();
     }
     else if (RNisClick)
     {
         RnCurb rc = new RnCurb();
         this.Close();
         rc.ShowDialog();
     }
     else if(CAisClick){
         ControlsAndAccessories cor = new ControlsAndAccessories();
         cor.orderID = OrderSale;
         this.Close();
         cor.ShowDialog();
     }
     else if(RLisClick){
         XuanxingUI XuUi = new XuanxingUI(ModelOrder);
         this.Close();
         XuUi.ShowDialog();
     }
     this.Close();
 }
コード例 #2
0
ファイル: AddNewUnit.cs プロジェクト: Spritutu/ntxx
 private void pictureBox1_DoubleClick(object sender, EventArgs e)
 {
     int ModelOrder = CatalogBLL.initialOrder(1);
     XuanxingUI XuUi = new XuanxingUI(ModelOrder);
     XuUi.ShowDialog();
 }
コード例 #3
0
ファイル: ordersummary.cs プロジェクト: Spritutu/ntxx
        //修改详细订单信息;
        private void btn_editDetail_Click(object sender, EventArgs e)
        {
            if (AAonRating.aaon.OrderDtlRowNo > 0)
            {
                //设置datagridview2的默认行
                foreach (DataGridViewRow dvg in AAonRating.aaon.dataGridView2.Rows)
                {
                    if (dvg.Selected == true)
                    {
                        AAonRating.aaon.RowIndexDGV2 = (int)dvg.Cells[7].Value;
                        AAonRating.aaon.XuanXingType = (int)dvg.Cells[10].Value;
                    }
                }

                //弹出选型窗口
                if (AAonRating.aaon.XuanXingType == 1)
                {
                    int ModelID = AAonRating.aaon.ModelOdId;
                    CatalogBLL.copyOrderToCurrent(ModelID, 1);
                    XuanxingUI XxUI = new XuanxingUI(ModelID);
                    XxUI.tb_qty.Text = AAonRating.aaon.qty_text;
                    AAonRating.aaon.AddOrderDetail = false;
                    XxUI.Show();
                }

                //弹出选图窗口
                if (AAonRating.aaon.XuanXingType == 2)
                {
                    FrontPhotoImageModelService.route = "AAnonRating";
                    List<ImageModel> imageModelList = ImageModelBLL.getImageModels(AAonRating.aaon.ModelOdId);
                    List<ImageEntity> imageBoxList = FrontPhotoImageModelService.getImageEntityFromDataBase(imageModelList);
                    FrontPhotoImageModelService.imageEntityFromAAonRatingList = imageBoxList;
                    FrontPhotoImageModelService.orderId = AAonRating.aaon.ModelOdId;
                    List<CatalogModel> catalogModelList = UnitBLL.getPropertyModels(AAonRating.aaon.ModelOdId);
                    OperatePhotoNeedData tempOperatePhotoNeedData = new OperatePhotoNeedData();
                    for (int i = 0; i < catalogModelList.Count; i++)
                    {
                        CatalogModel catalogModel = catalogModelList.ElementAt(i);
                        if (catalogModel.PropertyName.Equals("Unit Size"))
                        {
                            tempOperatePhotoNeedData.unitSize = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Base Rail"))
                        {
                            tempOperatePhotoNeedData.baseRail = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Painting"))
                        {
                            tempOperatePhotoNeedData.paining = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Special"))
                        {
                            tempOperatePhotoNeedData.uniteSpecial = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Supply Air Flow"))
                        {
                            tempOperatePhotoNeedData.supplyAirFlow = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Type"))
                        {
                            tempOperatePhotoNeedData.unitType = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Voltage"))
                        {
                            tempOperatePhotoNeedData.voltage = catalogModel.Value;
                        }
                        else if (catalogModel.PropertyName.Equals("Wiring"))
                        {
                            tempOperatePhotoNeedData.wring = catalogModel.Value;
                        }
                    }
                    FrontPhotoImageModelService.operatePhotoNeedData = tempOperatePhotoNeedData;
                    OperatePhoto operatePhoto = new OperatePhoto();
                    operatePhoto.setOperatePhotoNeedData(tempOperatePhotoNeedData, AAonRating.aaon.ModelOdId);
                    operatePhoto.ShowDialog();

                }
            }
        }