void selRow() { if (dgvData.CurrentCell != null && dgvData.CurrentCell.RowIndex >= 0) { var rowe = dgvData.CurrentCell.RowInfo; idCustomerPO = rowe.Cells["idCustomerPO"].Value.ToInt(); if (dgvData.CurrentCell.ColumnInfo.Name.Equals("JobNo")) { string jobNo = rowe.Cells["JobNo"].Value.ToSt(); if (!baseClass.Question("Do you want to open 'Job Order sheet' ?")) { return; } var m = new ProductionOrder(jobNo); m.ShowDialog(); DataLoad(); } else { if (sType == 1) { var p = new CustomerPO(idCustomerPO); p.ShowDialog(); DataLoad(); } else { this.Close(); } } } }
public Model.VO.CustomerVO GetCustomerByID(int custID) { CustomerData customerData = new CustomerData(); CustomerVO customerVO = new CustomerVO(); CustomerPO customerPO = customerData.GetCustomerByID(custID); customerVO = Mapper.Map <CustomerPO, CustomerVO>(customerPO); return(customerVO); }
void EditItem() { if (dgvData.CurrentCell == null) { return; } int idCustomerPO = dgvData.CurrentCell.RowInfo.Cells["idCustomerPO"].Value.ToInt(); CustomerPO c = new CustomerPO(idCustomerPO); c.ShowDialog(); DataLoad(); }
private void radButtonElement1_Click(object sender, EventArgs e) { //select Item if (sType == 1) { var t = new CustomerPO(); t.ShowDialog(); } else { selRow(); } }
public CustomerVO GetCustomerByCarNo(string carno) { CustomerData custdata = new CustomerData(); CustomerPO result = custdata.GetCustomerByCarNo(carno); if (result != null) { return(Mapper.Map <CustomerPO, CustomerVO>(result)); } else { return(new CustomerVO()); } }
public void EditCustomer(CustomerPO cust) { _daoCustomer.Update(cust); }
public bool EditCustomer(CustomerPO cust, CarPO car) { return _daoCustomer.Update(cust, car); }
public void AddCustomer(CustomerPO cust) { _daoCustomer.Add(cust); }
public int AddAllCustomer(CustomerPO cust, CarPO car) { return _daoCustomer.AddAll(cust, car); }
public int AddAllCustomer(CustomerPO cust, CarPO car) { return(_daoCustomer.AddAll(cust, car)); }
public bool EditCustomer(CustomerPO cust, CarPO car) { return(_daoCustomer.Update(cust, car)); }