일반 구매 화면에서 , 로그인 사용자가 구매 담당자 라면 해당 자료만 보이도록 매니저를 기본 설정 함
구매 자료 복사시 , 구매담당자 값 지우도록 함 구매 신청 화면에서 담당자가 1명이라면 자동으로 설정 함
This commit is contained in:
@@ -144,6 +144,11 @@ namespace FEQ0000
|
||||
//}
|
||||
}
|
||||
this.cmbManager.SelectedIndex = 0;
|
||||
var manidx = cmbManager.Items.IndexOf(FCOMMON.info.Login.nameK);
|
||||
if (manidx >= 0)
|
||||
{
|
||||
cmbManager.SelectedIndex = manidx;
|
||||
}
|
||||
//this.cmbAdmin.SelectedIndex = 0;
|
||||
|
||||
|
||||
@@ -871,6 +876,7 @@ namespace FEQ0000
|
||||
|
||||
newdr.bigo = string.Empty;
|
||||
newdr.bigo2 = string.Empty;
|
||||
newdr.purchase_manager = string.Empty;
|
||||
|
||||
newdr.request = FCOMMON.info.Login.no;
|
||||
newdr.receive = "";// FCOMMON.info.Login.nameK;
|
||||
|
||||
@@ -53,15 +53,16 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
//필수로
|
||||
if(FCOMMON.info.Login.gcode == "K4PM")
|
||||
if (FCOMMON.info.Login.gcode == "K4PM")
|
||||
{
|
||||
tbCostCenter.BackColor = Color.FromArgb(255, 255, 192);
|
||||
tbLineCode.BackColor = Color.FromArgb(255, 255, 192);
|
||||
tbManager.BackColor = Color.FromArgb(255, 255, 192);
|
||||
}
|
||||
this.tbPumPrice.Validated += (s1, e1) => {
|
||||
this.tbPumPrice.Validated += (s1, e1) =>
|
||||
{
|
||||
|
||||
if(tbPumPrice.Tag != null && tbPumPrice.Tag.ToString().Equals(tbPumPrice.Text))
|
||||
if (tbPumPrice.Tag != null && tbPumPrice.Tag.ToString().Equals(tbPumPrice.Text))
|
||||
{
|
||||
|
||||
}
|
||||
@@ -74,8 +75,8 @@ namespace FEQ0000
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -134,7 +135,7 @@ namespace FEQ0000
|
||||
{
|
||||
if (cmbRemark.SelectedIndex > 0)
|
||||
{
|
||||
tbBigo.Text = cmbRemark.Text.Replace(@"\n",Environment.NewLine) + tbBigo.Text.Trim();
|
||||
tbBigo.Text = cmbRemark.Text.Replace(@"\n", Environment.NewLine) + tbBigo.Text.Trim();
|
||||
}
|
||||
};
|
||||
cmbRemark.SelectedIndex = 0;
|
||||
@@ -271,7 +272,11 @@ namespace FEQ0000
|
||||
chk2.Checked = dr.chk2;
|
||||
|
||||
tbManager.Text = dr.purchase_manager;
|
||||
// tbAdmin.Text = dr.purchase_admin;
|
||||
if (tbManager.Text.isEmpty() && tbManager.Items.Count == 1)
|
||||
{
|
||||
tbManager.Text = (tbManager.Items[0] as DataRowView)["Value"].ToString();
|
||||
}
|
||||
// tbAdmin.Text = dr.purchase_admin;
|
||||
|
||||
tbSC.Text = dr.sc;
|
||||
tbPO.Text = dr.po;
|
||||
@@ -446,7 +451,7 @@ namespace FEQ0000
|
||||
this.tbPumUnit.Text = f.itemUnit; //181214
|
||||
this.tbStorage.Text = f.Storage;
|
||||
this.tbPumModel.Enabled = this.tbPumModel.Text.isEmpty();
|
||||
|
||||
|
||||
this.tbPumUnit.Enabled = false;
|
||||
if (tbSID.Text != "") tbSID.Enabled = false;
|
||||
else tbSID.Enabled = true;
|
||||
@@ -575,7 +580,7 @@ namespace FEQ0000
|
||||
|
||||
if (FCOMMON.info.Login.gcode == "K4PM")
|
||||
{
|
||||
if(tbCostCenter.Text.isEmpty())
|
||||
if (tbCostCenter.Text.isEmpty())
|
||||
{
|
||||
FCOMMON.Util.MsgE("CostCenter 를 입력하세요");
|
||||
tbCostCenter.Focus();
|
||||
@@ -774,7 +779,7 @@ namespace FEQ0000
|
||||
//품목정보에 없는 데이터이므로 자료를 추가한다.
|
||||
if (tbPumIDX.Text == "-1")
|
||||
{
|
||||
var newidx = FCOMMON.DBM.addItem(tbPumName.Text, tbSID.Text, tbPumModel.Text.Trim(), decimal.Parse(tbPumPrice.Text.Replace(",","")), tbSupply.Text.Trim(), int.Parse(tbSupplyIndex.Text), null);
|
||||
var newidx = FCOMMON.DBM.addItem(tbPumName.Text, tbSID.Text, tbPumModel.Text.Trim(), decimal.Parse(tbPumPrice.Text.Replace(",", "")), tbSupply.Text.Trim(), int.Parse(tbSupplyIndex.Text), null);
|
||||
if (newidx > 0) tbPumIDX.Text = newidx.ToString();
|
||||
}
|
||||
else if (tbSID.Text != "" && tbSID.Text != tbSID.Tag.ToString())
|
||||
@@ -796,7 +801,7 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
//단가가없는경우 생성한다.
|
||||
if (decimal.TryParse(tbPumPrice.Text.Replace(",",""), out decimal vprice) == false)
|
||||
if (decimal.TryParse(tbPumPrice.Text.Replace(",", ""), out decimal vprice) == false)
|
||||
{
|
||||
if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal vpriced) == true)
|
||||
{
|
||||
@@ -871,7 +876,7 @@ namespace FEQ0000
|
||||
dr.linecode = tbLineCode.Text;
|
||||
|
||||
dr.purchase_manager = tbManager.Text;
|
||||
// dr.purchase_admin = tbAdmin.Text;
|
||||
// dr.purchase_admin = tbAdmin.Text;
|
||||
|
||||
if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull();
|
||||
else dr.supplyidx = int.Parse(tbSupplyIndex.Text);
|
||||
@@ -1003,7 +1008,7 @@ namespace FEQ0000
|
||||
var b1 = int.TryParse(tbQtyReal.Text.Replace(",", ""), out int qtyreal);
|
||||
var b2 = int.TryParse(tbQtyReq.Text.Replace(",", ""), out int qtyreq);
|
||||
|
||||
var amtstr = tbPumPrice.Text.Replace("\\", "").Replace(",", "").Replace("₩","");
|
||||
var amtstr = tbPumPrice.Text.Replace("\\", "").Replace(",", "").Replace("₩", "");
|
||||
var b3 = double.TryParse(amtstr, out double price);
|
||||
double amt = 0;
|
||||
|
||||
@@ -1324,8 +1329,9 @@ namespace FEQ0000
|
||||
//선택된 개체의 Svalue 값이 있따면 그것을 라인코드에 넣는다.
|
||||
var selvalue = tbCostCenter.SelectedItem as DataRowView;
|
||||
var svalue = selvalue["SValue"];
|
||||
if(svalue != null) {
|
||||
if(tbLineCode.Text.isEmpty()) tbLineCode.Text = svalue.ToString();
|
||||
if (svalue != null)
|
||||
{
|
||||
if (tbLineCode.Text.isEmpty()) tbLineCode.Text = svalue.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user