public FormDATAENTRY(DELIVERYORDER.FormDAFTARSTT _frm,int Type,
            RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj, RMS.COMMON.MASTER.RMS_USER user)
        {
            InitializeComponent();
            INIT_PERUSAHAAN();
            SET_PRINT();
            cUser = user;
            this.frm = _frm;
            this.Type = Type;
            setDIM();

            if (cUser.isbiayastt)
            {
                panelBIAYA.Visible = true;
            }
            else
            {
                panelBIAYA.Visible = false;
            }

            if (Type == 0)
            {
                cboINSURANCE.Text = "0";
                txtNOCONNOTE.Text = GETKODE();
                cboTERMOFPAYMENT.Text = "PREPAID";
            }
            else
            {
                c.ID = obj.ID;
                LOAD_DATA(obj);

            }
        }
 public FormVIEWPRICELISTCUSTOMER(DELIVERYORDER.FormDATAENTRY _frm, RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj)
 {
     InitializeComponent();
     this.frm = _frm;
     c.IDCUSTOMER = obj.IDCUSTOMER;
     c.NAMACUSTOMER = obj.NAMACUSTOMER;
     lblCUSTOMER.Text = obj.NAMACUSTOMER;
     LOAD_DATA();
 }
        public FormVIEWKOTATERUSAN(DELIVERYORDER.FormDATAENTRY _frm,int _type, string KODE)
        {
            InitializeComponent();
            type = _type;
            if (type == 1)
            {
                c.KODEAREA = KODE;
                this.frm = _frm;
            }

            LOAD_DATA();
        }
 public FormTAMBAHCUSTOMER(DELIVERYORDER.FormDATAENTRY _frm, EXPRESS.FormENTRYSO _frmSO, int _Type)
 {
     InitializeComponent();
     this.Type = _Type;
     txtKODE.Text = GETKODE();
     txtKODE.ReadOnly = true;
     if (Type == 1)
     {
         this.frm = _frm;
     }
     else
     { this.frmSO = _frmSO; }
 }
        public FormVIEWKOTA(DELIVERYORDER.FormDATAENTRY _frm, string namaField,int _type)
        {
            InitializeComponent();

            this.frm = _frm;
            type = _type;
            if (type == 1)
            {
                this.frm = _frm;
            }

            _namaField = namaField;;
            LOAD_DATA();
        }
 public FormTAMBAHPENERIMA(DELIVERYORDER.FormDATAENTRY _frm,EXPRESS.FormENTRYSO _frmSO, int _Type)
 {
     InitializeComponent();
     this.Type = _Type;
     if (Type == 1)
     {
         this.frm = _frm;
         c.TYPE = 2;
     }
     else
     {
         c.TYPE = 1;
         this.frmSO = _frmSO; }
 }
 public FormVIEWCUSTOMER(DELIVERYORDER.FormDATAENTRY _frm, DELIVERYORDER.FormDAFTARINVOICE _frmSTT, int _type)
 {
     InitializeComponent();
     this.type = _type;
     if(type==1)
     {
          this.frm = _frm;
     }
     else
     {
         this.frmINVOICE = _frmSTT;
     }
     LOAD_DATA();
     txtCARI.Focus();
 }
 public FormVIEWAGENT(DELIVERYORDER.FormDATAENTRY _frm, MASTER.SUBMASTER.FormPRICELIST _frmPRICELIST, string _field, int _type,RMS.COMMON.MASTER.RMS_PRICELISTAGENT obj)
 {
     InitializeComponent();
     type = _type;
     if (type == 1)
     {
         this.frm = _frm;
         cc = obj;
     }
     else
     {
         this.frmPRICELIST = _frmPRICELIST;
     }
     field = _field;
     if (field == "SMU")
     {
         cc.JNSCOST = "FREIGHT";
     }
     else if (field == "SHIPPING")
     {
         cc.JNSCOST = "SHIPPING";
     }
     else if (field == "DELIVERY")
     {
         cc.JNSCOST = "DELIVERY";
     }
     else if (field == "WAREHOUSE")
     {
         cc.JNSCOST = "WAREHOUSING";
     }
     else if (field == "RA")
     {
         cc.JNSCOST = "RA";
     }
     else if (field == "TRUCKING")
     {
         cc.JNSCOST = "TRUCKING";
     }
     else
     {
         cc.JNSCOST = "GRDH";
     }
     cc.ISAKTIF = true;
     LOAD_DATA();
     this.txtCARI.Focus();
 }
        public FormVIEWPENERIMA(DELIVERYORDER.FormDATAENTRY _frm,EXPRESS.FormENTRYSO _frmSO, int _type)
        {
            InitializeComponent();
            this.type = _type;
            if (type == 1)
            {
                this.frm = _frm;
                c.TYPE = 2;
            }
            else {
                c.TYPE = 1;
                this.frmSO = _frmSO; }

            LOAD_DATA();
            txtCARI.Focus();
            myToolTip();
        }
 public FormVIEWSUPPLIER(DELIVERYORDER.FormDATAENTRY _frm)
 {
     InitializeComponent();
     this.frm = _frm;
     LOAD_DATA();
 }
 public DELIVERYORDER Update(DELIVERYORDER DeliveryOrder)
 {
     throw new NotImplementedException();
 }