Exemplo n.º 1
0
        //按钮列的点击事件
        public void ColumnButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int         row   = this.gridView1.FocusedRowHandle;
            StructOrder order = this.orders[row];

            ProductIndentDetailView view = new ProductIndentDetailView(order);

            ToolsManage.ShowForm(view, false);
        }
 public ProductIndentDetailView(StructOrder tem)
 {
     InitializeComponent();
     this.order = tem;
     InitUI();
     if (tem != null)
     {
         RefreshUI();
     }
 }
        //添加新行
        private void AddNewRow(StructOrder order)
        {
            DataRow row = this.mainDataTable.NewRow();

            this.mainDataTable.Rows.Add(row);
            row[TitleList.Name.ToString()]  = order.Username;
            row[TitleList.Area.ToString()]  = order.Areaname;
            row[TitleList.Money.ToString()] = order.Money;
            row[TitleList.Time.ToString()]  = order.Addtime;
        }
        public void ButtonColumn_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int         rowhandle = this.gridView1.FocusedRowHandle;
            StructOrder order     = orders[rowhandle];

            CloseFormHandle close = new CloseFormHandle(delegate() {
                GetProductIndentList();
            });
            PayedProductIndentDetailView detail = new PayedProductIndentDetailView(order);

            ToolsManage.ShowForm(detail, false, close);
        }
Exemplo n.º 5
0
        //添加新行
        private void AddNewRow(StructOrder order)
        {
            DataRow row = this.mainDataTable.NewRow();

            this.mainDataTable.Rows.Add(row);
            row[TitleList.IndentNumber.ToString()] = order.Orderid;
            row[TitleList.IndentUser.ToString()]   = order.Username;
            row[TitleList.IdNumber.ToString()]     = order.Cardnumber;
            row[TitleList.Area.ToString()]         = order.Areaname;
            row[TitleList.IndentMoney.ToString()]  = order.Money;
            row[TitleList.IndentTime.ToString()]   = order.Addtime;
            row[TitleList.HandleTime.ToString()]   = order.Proctime;
            row[TitleList.Staff.ToString()]        = order.Operator;
            row[TitleList.IndetState.ToString()]   = order.Status;
            row[TitleList.PayChannel.ToString()]   = order.Paymode;
            row[TitleList.PayNumber.ToString()]    = order.Payid;
        }