Ejemplo n.º 1
0
 public fmDoubleNorms(fmNormsViewer fm)
 {
     _sourceDetID  = fm._infDetID;
     _dgOperViewer = fm.DgOperViewer;
     InitializeComponent();
     InitilizeFormElemets();
 }
Ejemplo n.º 2
0
 public fmGroupUpdate(fmNormsViewer fminput)
 {
     InitializeComponent();
     _currentLabourDg = fminput.DgOperViewer;
     _fmParent = fminput;
     InitializeFormFields(_currentLabourDg);
 }
Ejemplo n.º 3
0
 public fmDoubleNorms(fmNormsViewer fm)
 {
     _sourceDetID = fm._infDetID;
      _dgOperViewer = fm.DgOperViewer;
     InitializeComponent();
     InitilizeFormElemets();
 }
Ejemplo n.º 4
0
 public fmGroupUpdate(fmNormsViewer fminput)
 {
     InitializeComponent();
     _currentLabourDg = fminput.DgOperViewer;
     _fmParent        = fminput;
     InitializeFormFields(_currentLabourDg);
 }
Ejemplo n.º 5
0
        public fmOperationViewer(int countPerProduct, fmNormsViewer parentForm)
        {
            InitializeComponent();

            _parentForm = parentForm;
            _timeInHour = parentForm.TimeInHour;
            _currentRow = parentForm.CurrentRow;
            _dgNorm = parentForm.DgOperViewer;
            _dcInfProducts = parentForm.DcInfProducts;

            FillLabourNormFromDg(_dgNorm, _currentRow, ref templabour);
            InitializeFormElement();
            IsNewItem = false;
            _countPerProduct = countPerProduct;

            InitializeGbOperItem();
            btSaveAndLimit.Enabled = false;
            btSaveFrom.Enabled = false;
            vtbProdName.Enabled = false;
            _newID = FillTrudoyomkostDB.LabourNormList.Max().ID;
            _newID++;
        }
Ejemplo n.º 6
0
 public fmOperationViewer(fmNormsViewer parentForm)
 {
     templabour.TariffNetNum = Properties.Settings.Default.TariffNetNum; //сдесь ставится тариф(наверное)
     _parentForm = parentForm;
     IsNewItem = true;
     _timeInHour = parentForm.TimeInHour;
     templabour.InfDetID = parentForm.InfDetID;
     _countPerProduct = parentForm.CountPerProduct;
     _dcInfProducts = parentForm.DcInfProducts;
     InitializeComponent();
     _dtOperApply = UserDataTables.CreateOperAppDt();
     dgOperApply.DataSource = _dtOperApply;
     InitializeFormElement();
     btUpdateForm.Enabled = false;
     btSaveAndLimit.Enabled = false;
     btLimitedOper.Visible = false;
     btNext.Enabled = false;
     btPrev.Enabled = false;
     vtbTaskNum.ValueTxt = "";
     vtbItemCTN.ValueTxt = "0";
     vtbPreparTimeCTN.ValueTxt = "0";
     cbKindPay.SelectedIndex = 0; //Вид оплаты, сдельно или повременно
 }
Ejemplo n.º 7
0
 public fmOperationViewer(fmNormsViewer parentForm)
 {
     templabour.TariffNetNum = Properties.Settings.Default.TariffNetNum; //сдесь ставится тариф(наверное)
     _parentForm             = parentForm;
     IsNewItem           = true;
     _timeInHour         = parentForm.TimeInHour;
     templabour.InfDetID = parentForm.InfDetID;
     _countPerProduct    = parentForm.CountPerProduct;
     _dcInfProducts      = parentForm.DcInfProducts;
     InitializeComponent();
     _dtOperApply           = UserDataTables.CreateOperAppDt();
     dgOperApply.DataSource = _dtOperApply;
     InitializeFormElement();
     btUpdateForm.Enabled      = false;
     btSaveAndLimit.Enabled    = false;
     btLimitedOper.Visible     = false;
     btNext.Enabled            = false;
     btPrev.Enabled            = false;
     vtbTaskNum.ValueTxt       = "";
     vtbItemCTN.ValueTxt       = "0";
     vtbPreparTimeCTN.ValueTxt = "0";
     cbKindPay.SelectedIndex   = 0; //Вид оплаты, сдельно или повременно
 }
Ejemplo n.º 8
0
        public fmOperationViewer(int countPerProduct, fmNormsViewer parentForm)
        {
            InitializeComponent();

            _parentForm    = parentForm;
            _timeInHour    = parentForm.TimeInHour;
            _currentRow    = parentForm.CurrentRow;
            _dgNorm        = parentForm.DgOperViewer;
            _dcInfProducts = parentForm.DcInfProducts;

            FillLabourNormFromDg(_dgNorm, _currentRow, ref templabour);
            InitializeFormElement();
            IsNewItem        = false;
            _countPerProduct = countPerProduct;



            InitializeGbOperItem();
            btSaveAndLimit.Enabled = false;
            btSaveFrom.Enabled     = false;
            vtbProdName.Enabled    = false;
            _newID = FillTrudoyomkostDB.LabourNormList.Max().ID;
            _newID++;
        }
Ejemplo n.º 9
0
 private void btViewDetNumNorms_Click(object sender, EventArgs e)
 {
     _newfmNormsViewer = new fmNormsViewer(lbDetNum.Text, dcIDDetNum[lbDetNum.Text], _seriaFrom,
                                           _seriaTo, _selectProdCipher, _infProductsDc, _selectDetCount, _selectTaskNumber);
     _newfmNormsViewer.ShowDialog();
 }
Ejemplo n.º 10
0
 private void btViewDetNumNorms_Click(object sender, EventArgs e)
 {
     _newfmNormsViewer = new fmNormsViewer(lbDetNum.Text, dcIDDetNum[lbDetNum.Text], _seriaFrom,
                                           _seriaTo, _selectProdCipher, _infProductsDc, _selectDetCount, _selectTaskNumber);
     _newfmNormsViewer.ShowDialog();
 }